z’nged my mac os desktop

for weeks, i have been struggling with enigma desktop on windows 7. geektool had been installed during the 1st week i had my imac, and i used it to display the top cpu processes and disk space usage. it wasn’t till i was searching for desktop customization inspiration from lifehacker, that i thought of customizing my imac. geektool and mac is a pair made in heaven. customization is a breeze for me, with lots of tips and guides available on the world wide web.

Mac OS X with GeekTool v1.0

entries used:

harddisk utilization (Shell)

df -h | grep <disk name> | awk ‘{print “Total: “, $2, “Unused: ” ,$4}’

cpu (Shell)

top -l 2 | awk ‘/CPU usage/ && NR > 5 {print $12, $13}’

ram (Shell)

top -l 1 | awk ‘/PhysMem/ {print “” $8 ” “}’ ;

top memory hoggers (Shell)

top -orsize -FR -l1 | grep % | grep -v Load | grep -v COMMAND | cut -c 7-15,64-69

time (Shell)

date “+%l:%M %p”

day of the date (Shell)

date +%d

weekday of the date (Shell)

date +%A

month of the date (Shell)

date +%B

calendar (Shell)

cal

lifehacker rss (Shell)

this section took me the most amount of time to get it to work.

  1. download the news.sh file and save it on your machine, preferably in your Documents folder, i.e. /Users/<username>/Documents/news.sh
  2. rename news.sh to news.command, and enable execute permission on the file – chmod u+x news.command
  3. open news.command file from TextEdit, and change the URL=”<feeds URL>” accordingly. Do not use “feed://…” but “http://…” or the rss feed will not work.
  4. on GeekTool, create a New Entry and select File from the drop-down list. Type the following command – <location of news.command file>/news.command. the sh command is not required.

it would be helpful if you are well-versed in unix commands, as you might have noticed, the syntax are very much unix-based.

external links to aid you further in the customization:

thememymac – geektool: explained for beginners
francescomugnai – mega roundup of geektool scripts + inspiration

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.