Geektool HUD Scripts

this is for my Geektool HUD theme on DeviantART:

I finally figured out the problem! I had accidentally deleted the image updater for the weather and the date!
• gradient background is a buch of images from: here just placed next to each other at 70% opacity

• the weather text is: curl --silent "http://xml.weather.yahoo.com/forecastrss?p=21044&u=f" | grep -E '(Current Conditions:|F<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<description>//' -e 's/<\/description>//' – I used Lucida Grande size 18pt with a silver color at a 600 second refresh

• the weather icon is 2 geeklets. The first one is a shel and uses this command: curl --silent -o /tmp/weather.html http://weather.yahoo.com/united-states/oregon/portland-23424682/; curl --silent -o /tmp/weather.png $(grep "div\ class=\"forecast-icon\"\ style=\"background:url" /tmp/weather.html| awk -F"'" '{ printf $2 }');for NUM in $(grep -n "&lt;li&gt;&lt;strong&gt;.*\n" /tmp/weather.html|cut -d":" -f1); do TARGET=$((NUM+1)) ; sed -n "$NUM"p /tmp/weather.html|sed 's|&lt;li&gt;&lt;strong&gt;||g'|sed 's|&lt;/strong&gt;||g'| sed 's/^[\t]*//'; sed -n "$TARGET"p /tmp/weather.html ; done
make that geeklet invisible by setting the text color to transparent and set it to refresh every 10 minutes (600 second)

• the second weather icon geeklet is an image pointing to file://localhost/tmp/weather.png set it also to refresh every 10 minutes note: the icon won’t work without the other script as the script is what grabs the image from online

• the day of the month is a shell: date +"%d" size Lucida Grande size 144pt silver refresh every 10 minutes

• the abbreviated month script is: date +"%b" Lucida Grande size 40pt silver refresh every 10 minutes

• the day of the week is: date +"%A" Lucida Grande size 40pt silver refresh every 10 minutes

• the time script is: date +"%I:%M %p" Lucida Grande size 40pt silver refresh every 60 seconds

• the calendar is: cal | sed "s/^/ /;s/$/ /;s/ $(date +%e) / $(date +%e | sed 's/./#/g') /" you have to install a new font called monospace typewriter and set it to size 13pt silver

• finally the music info uses bowtie with the geektool theme with the window level set to embedded in desktop

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>