A living desktop for Snow Leopard

There are certainly a zillion ways how to do create a nice background for your Mac. Here is my favorite method of a weather forecast, an individual calendar and the most recent emails. I created just three geeklets and loaded them in Geektool.


The most difficult part turned out to get the weather icon from Yahoo! With a little help form several sites I ended up with the following code for Munich

curl –silent “http://weather.yahoo.com/germany/bavaria/munich-676757/” | grep “forecast-icon”| sed “s/.*background\:url(\’\(.*\)\’)\;\ _background.*/\1/” | xargs curl –silent –output “/Users/wjst/Documents/Daten/System/yweather.png”
curl –silent “http://xml.weather.yahoo.com/forecastrss?p=GMXX0087&u=c” | grep -E ‘//’ -e s’/\”//g’ -e s’/ / /g’
curl –silent “http://xml.weather.yahoo.com/forecastrss?p=GMXX0087&u=c” | grep -E ‘//’ -e s’/\”//g’ -e s’/ / /g’ -e ‘s/date=//’ -e ‘s/text=//g’ -e ‘s/ code=3.//g’

while the picture is simply loaded from /Users/wjst/Documents/Daten/System/yweather.png.
For the ical bridge I installed icalbuddy

/usr/local/bin/icalBuddy -nc -sd -ic Todo -b “” -li 3 -stda uncompletedTasks | sed -e “s/!//” -e ‘s/^ //g’
echo ” ”
/usr/local/bin/icalBuddy -nc -sd -ic Out,Base -df %a” “%d.%m.%Y -nrd -b “” -iep datetime,title -eed -po datetime,title -ps “| | – |” eventsToday+6 | sed -e “s/*/Geburtstag */” | sed -e “s/!/!!/”

while emails are pulled by a short appescript that I found at macosxhints.com

osascript /Users/wjst/Documents/Daten/System/NoNewMail.scpt| sed -e “s/\///” | sed -e “s/\”//”