May 27 2009

GeekTools, desktop enhancing

A friend of mine, Micke, showed me the app "GeekTool" yesterday, and I stuck for it imediatly.

The app is really great. It lets you use terminal commands to show certain data on your desktop. I started using it right away, and this is my result:

Desktop Preview
Geektool 2.1.2 can be downloaded here: http://www.versiontracker.com/dyn/moreinfo/macosx/17621

Now, ofcourse not everybody is good in shell scripting and/or terminal commands to I show you the commands below:

For IP address (Internal):

ifconfig en0 | awk '/inet / {print "[IP]\t\t\t" $2}'

For Uptime:

uptime | awk '{print "[Uptime]\t\t" $3 " " $4 " " $5 }' | sed -e 's/.$//g'

For HD free space:

df -hl | grep 'disk0s2' | awk '{print "[HD]\t\t\t"$4"/"$2" free ("$5" used)"}'

For RAM usage:

top -l 1 | awk '/PhysMem/ {print "[RAM]\t\tUsed: " $8 " Free: " $10}'