My GeekTool

I promised I would write about this earlier. I use my GeekTool to see the time from across the room, check the calendar, see what the weather’s like outside when I wake up, monitor my bandwidth, check the latest twitter message, and see if I have any unread emails in my inbox.

The Desktop

desktop_11_4_09

iTunes controller

itunes

This is a custom BowTie theme I made after modifying one of the default themes. I called it Chris because I didn’t ever plan on releasing it. I have since finished it, and you can grab it here.

Time

time

There are just normal date commands:

  • Time: date “+%l:%M:%S %p”
  • Date: date +%A; date “+%B %d, %Y”

Calendar

calendar

The day header is just static text. The actual calendar is this command:

  • Calendar: cal | grep -v “[a-zA-Z*] [0-9]” | grep -v “Su”

Weather

weather
This geeklet uses a php file to grab the image off of Yahoo’s weather site. I used the script found here to do this.

  • Temperature: curl –silent “http://xml.weather.yahoo.com/forecastrss?p=46750″ | 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///’ -e ‘s/</description>//’

Network

network

This section is to see my IP addresses for both my local and school networks. Here at college, I have to stay under a daily upload and download limit, so I load in my current daily up/down stats off of DD-WRT on my router.

  • IP Addresses: bash script
  • Bandwidth: curl -s http://root:admin@192.168.1.1/ttgraph.cgi?$(date +”%m-20%y” | sed “s/^[0]//”) | grep -E $(date “+d%d” | sed -e “s/^d[0]/d/” -e “s/$/”/” -e “s/^/”/”) | awk ‘ { dl = $8;ul = $12; printf(“Router DL: %d MBnRouter UL: %u MBn”, dl, ul); }’

Twitter

Update: Due to Twitter no longer allowing simple authentication, this method of retrieving tweets no longer works. If someone is able to come up with a way of doing this using the Terminal/GeekTool, please let me know!

twitter

This is another bash script. Make sure you set your own username and password. Here ya go.

Gmail

gmail

Yay, another bash script!. Be sure you put in your own account details.

Background

People were asking for the Photoshop file of the graphic I used on the bar behind the geeklets. Download them here!

And that’s it! Let me know if you have any questions about it in the Comments below.

13 Comments

  1. Dallas Edwards
    #

    I’m ripping your theme off at this very moment. Thanks! :)

  2. Chris Valleskey
    #

    Hey, no problem! I actually just realized I forgot to upload the wallpapers. I’ll do that sometime today if I remember to get around to it.

  3. Chris Leary
    #

    Hey, just poking you in hopes you’ll remember to post that sweet wallpaper. :P

  4. Chris Valleskey
    #

    Thanks for reminding me! I’ve made a new post.

  5. Phil
    #

    WRT bowtie, I found that the “total track time” was showing (a lot of) decimals, which pushed down the stars and other items below.

    Needed to update secToString in script.js to include:
    sec = Math.round(time % 60);

    Not sure if this was a snow leopard or 9.0.x iTunes thing, but it looks right now.

    Great stuff – thanks for sharing!

  6. Chris
    #

    @Phil:

    Ah, thanks for noticing that. I’ve been thinking about releasing the theme as an official theme (with a name better than just “Chris”), so once I do that I will make sure all the kinks get fixed up.

  7. Ed
    #

    I love your and your mods and bowtie theme…

    but I am having the same trouble as Phil with the decimals.

    Is there any way you can post the updated theme or a new version of the script.js file to help.

    Thanks

  8. Chris
    #

    @Ed:

    Sure, no problem. Download this zip and let me know if it works. This is the one I use now, and if it works for other people I’ll update the post with it.

  9. Bruce
    #

    WRT bowtie, I found that the “total track time” was showing (a lot of) decimals, which pushed down the stars and other items below.

    Needed to update secToString in script.js to include:
    sec = Math.round(time % 60);

    Not sure if this was a snow leopard or 9.0.x iTunes thing, but it looks right now.

    Great stuff – thanks for sharing!

  10. Adam
    #

    Hey, could you public your wallpaper or tutorial how you make this line on bottom and “background” for your Geeklets ?

  11. David
    #

    How do you install this(im a noob to geektool) PLZ EMAIL AT: dccfoux@gmail.com

Leave a Reply