Geektool: Use that wasted space beside the Dock

One little gripe I’ve always had about in OS X is the apparent waste of space either side of the Dock (assuming you have it centred at the bottom of the screen).

Geektool to the rescue!

View the image at QuickSnapper.com

Here’s the little scripts that I use to get the weather (just change the region code ASXX0016 to your region from weather.yahoo.com. Your region code will be found in the yahoo URL):

curl --silent "http://xml.weather.yahoo.com/forecastrss?p=ASXX0016&u=c" | grep -E '(Current Conditions:|C<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<description>//' -e 's/<\/description>//'
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=ASXX0016&u=c" | grep -E '(High:)' | sed -e 's/<BR \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<br \/>//'

And the script for Memory usage, HDD space and Uptime:

top -l 1 | awk '/PhysMem/ {print $10}' 
df -hl | grep 'disk0s2' | awk '{print $4}'
echo "Uptime: "`uptime | awk '{print "" $3 " " $4 " " $5 }' | sed -e 's/.$//g';`

You might also be interested to check out other uses of Geektool on Flickr

To Apple: Let us put Widgets on the Desktop too please (without having to use a hack).

2 Responses to “Geektool: Use that wasted space beside the Dock”

  1. Lukan Says:

    What a great little tool this is. Thanks heaps for the scripts they worked a treat.

  2. ScriptoX Says:

    Nice post..Keep them coming :) Thanks for sharing.