kennethf
GeekTool desktop (now with spotify)
Wallpaper is #169 Bakounine from www.customvector.com
Fonts are "Turn Table", "Nu Sans Mono", and "Cracked" from www.dafont.com
Weather:
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=noxx0050&u=c" | grep -e "Current Conditions" -A 1 | tail -n 1 | sed -e 's///'
Processes:
top -ocpu -FR -l2 -n6 | grep '^....[1234567890] ' | grep -v ' 0.0% ..:' | cut -c 1-24,33-42,64-77
Date:
date +%d
date +%A
date +%B
date +%H:%M
The spotify last playing is fairly inefficient hacks with some issues, like it's not _really_ the current playing and 4 last songs, it's the 5 last entries growl wrote to /var/log/system.log. The perl scripts is inefficient quickhacks, and I'm hoping someone will improve them. But all in all it works well enough.
Steps to get this working:
#1: Get growl, get it set up with spotify
#2: Have Growl write to the system.log
"defaults write com.Growl.GrowlHelperApp GrowlLoggingEnabled -int 1"
Restart growl and run the following command in the terminal to make sure growl logs to system.log: "cat /var/log/system.log |grep Spotify". If songs doesn't show up now, something's wrong and I probably can't help you.
#3: Save these two perl scripts as whatever.pl, do chmod +x whatever.pl, then have GeekTool run it as a shell command.
Perl script for latest 4 spotify songs:
Perl script for currently playing spotify song:
GeekTool desktop (now with spotify)
Wallpaper is #169 Bakounine from www.customvector.com
Fonts are "Turn Table", "Nu Sans Mono", and "Cracked" from www.dafont.com
Weather:
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=noxx0050&u=c" | grep -e "Current Conditions" -A 1 | tail -n 1 | sed -e 's///'
Processes:
top -ocpu -FR -l2 -n6 | grep '^....[1234567890] ' | grep -v ' 0.0% ..:' | cut -c 1-24,33-42,64-77
Date:
date +%d
date +%A
date +%B
date +%H:%M
The spotify last playing is fairly inefficient hacks with some issues, like it's not _really_ the current playing and 4 last songs, it's the 5 last entries growl wrote to /var/log/system.log. The perl scripts is inefficient quickhacks, and I'm hoping someone will improve them. But all in all it works well enough.
Steps to get this working:
#1: Get growl, get it set up with spotify
#2: Have Growl write to the system.log
"defaults write com.Growl.GrowlHelperApp GrowlLoggingEnabled -int 1"
Restart growl and run the following command in the terminal to make sure growl logs to system.log: "cat /var/log/system.log |grep Spotify". If songs doesn't show up now, something's wrong and I probably can't help you.
#3: Save these two perl scripts as whatever.pl, do chmod +x whatever.pl, then have GeekTool run it as a shell command.
Perl script for latest 4 spotify songs:
Perl script for currently playing spotify song: