qertwing.blogg.se

Geektool script
Geektool script











  1. #GEEKTOOL SCRIPT FOR MAC OS X#
  2. #GEEKTOOL SCRIPT FULL#

This is a pretty simplistic example of what you can do with GeekTool. The Keep On Top checkbox is handy as it will cause the output of the Geeklet to float over any windows that also occupy that space on the desktop. Resize the window to make sure all of the text is visible. You can set a background color and opacity, change the text font and color, and whatever else you want in order to customize the text to your preference. Within the Geeklet square on the desktop, you should see this information now. With a script like this, you could set it to 3600 to run every hour as this information should not change often. Change the Refresh Every option to something like 600 to run the script every 10 minutes.

#GEEKTOOL SCRIPT FULL#

Switch back to GeekTool and in the Command field enter: /Users//bin/gt-scripts/gt-ipinfo.sh or the full path to where this script lives. The script simply displays the external IP (obtained from ) and the IP(s) assigned to the computer on the local network. Next, make the script executable and test it by executing: $ chmod a+x gt-ipinfo.sh.

geektool script

Create a new file called gt-ipinfo.sh in this directory with the following contents: #!/bin/sh external=$(curl -s | awk " fi I store my GeekTool scripts in ~/bin/gt-scripts/. Now open the Terminal and find a place to create your shell script. In the Command section of the Properties, we want to give it the path to a shell script to execute. You can move it around, resize it, and adjust the properties at this point. Drag the box to to the location on the desktop where you want it to be displayed.

geektool script

An empty box will appear and a Properties window will show up. As an illustration, we’ll create a Geeklet that displays the computer’s internal and external IP addresses.ĭrag the Shell icon to the desktop. Once the Preference Pane is installed, you can create a new “Geeklet” by dragging one of the icons to your desktop. The real power in GeekTool is displaying output from shell scripts, which makes the “Geek” in GeekTool apt for many.

geektool script

These can be used to display or tail the contents of files on the desktop (think log files), the output of shell scripts, and image graphics (like RRD or MRTG graphs), respectively.įor a lot of people, GeekTool may be nothing more than a novelty, but for system administrators and others, GeekTool can be a real boon. It comes with three modules: the file plugin, the shell plugin, and the image plugin.

#GEEKTOOL SCRIPT FOR MAC OS X#

GeekTool is a fantastic System Preference Pane for Mac OS X that allows you to display a variety of different pieces of information directly on the desktop. Vincent Danen introduces GeekTool, a System Preference Pane for Mac OS X that allows you to display system information of your choice directly on the desktop. Get system display options with GeekTool for the Mac













Geektool script