GeekTool and Calendaring

Here’s what I have on my desktop now, thanks to GeekTool and some simple one-line scripts.

Picture 1.png

Here are the useful command line arguments:

  • date +%A » prints the day of the week (Sunday)
  • date +%d » prints the day of the month (19)
  • date +’%B, %Y’ » prints the month, year (April, 2009)
  • weather.sh » as described below

Here’s the contents of weather.sh:

curl --silent "http://xml.weather.yahoo.com/forecastrss?p=YOURCITYCODE&u=f" | grep -E '(Current Conditions:|F//' -e 's///' -e 's/<\/b>//' -e 's/
//' -e 's///' -e 's/<\/description>//'

Replace YOURCITYCODE with your appropriate city code as Yahoo Weather likes it.