A Small List of Common GeekTool User Commands

Posted on 28 September 2009 by Tina Brunner

Ldesk screenshotast week, I wrote an article about GeekTool and its uses. I decided that it would be nice to create a list of some of the most common user commands that I’ve found online so that others may benefit the great features of GeekTool.  I am using GeekTool 3 for the commands. To the right is a preview of the GeekTool pane area (just click it to enlarge). So let’s get to the commands….

Month:
date +%B
Month
Day of Month:
date +%d
Day of Month
Full Date:
date "+%A, %B %d"
Full Date
Day of Week:
date +%A
Day of Week
Time:
date +"%l:%M"
Time
AM/PM:
date +"%p"
AM:PM
Current Calendar Month
This is just a simple, small calendar:
cal
Small Calendar
Simple Horizontal Calendar:
cal | sed -e '1d' -e '2p;2p;2p;2p' | sed -e '$!N;s/\n/ /' -e '$!N;s/\n/ /' -e '$!N;s/\n/ /' -e '$!N;s/\n/ /' | sed "s/^/ /;s/$/ /;s/ $(date +%e) /\|$(date +%e)\|/"

Horizontal Calendar

Weather Conditions:
lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=51501|awk '/Cond/ && !/Fore/ {for (i=2; i<=10; i++) printf $i " " }'
Weather Conditions
Historical Events:
curl http://www.infoplease.com/rss/dayinhistory.rss | grep CDATA | sed -e 's/\(.*\[\)//' -e 's/\].*//'
Historical Events
Quote of the Day:
curl http://encarta.msn.com/encnet/feeds/rssfeed.aspx?type=quote | grep description | sed -e 's/\(.*<description>\)//' -e 's/<\/description>.*//'
Quote of the Day
Current Homeland Security Level (which will most likely show ‘Elevated’:
curl -s http://www.dhs.gov/dhspublic/getAdvisoryCondition | grep CONDITION
Threat Level
RAM:
top -l 1 | awk '/PhysMem/ {print "" $8 " "}' ;
RAM
CPU:
top -l 2 | awk '/CPU usage/ && NR > 5 {print $12, $13}'
IP Address
If you simply want to know your IP Address, this sort of command can be very helpful.
echo External IP: `curl -s http://checkip.dyndns.org/ | sed 's/[a-zA-Z<>/ :]//g'`
External IP

5 Comments For This Post

  1. Steve Says:

    suggested improvement for homeland security status:

    curl -s http://www.dhs.gov/dhspublic/getAdvisoryCondition | grep CONDITION | cut -d = -f 2 | cut -d ‘ ‘ -f 1 | sed ’s/.\(.*\)/\1/’ | sed ’s/\(.*\)./\1/’

  2. Всеволод Says:

    Обилие интересных статей на вашем сайте меня поражает! Автору – удачи и новых интересных постов!

  3. Tina Brunner Says:

    Author, Большое спасибо. Я высоко ценю вашу просмотре веб-сайта и надеемся на более комментариев!
    (Thank you very much. I appreciate your viewing the website and look forward to more comments!)

  4. DenzelWPn Says:

    Hello there, Did you have a happy Haloween?

  5. Tina Brunner Says:

    DenzelWPn:
    Yes, we had a wonderful Halloween. Hopefully you did too. Thanks for asking!

13 Trackbacks For This Post

  1. The Metal Wallpaper Clock Desktop | Lifehacker Australia Says:

    [...] GeekTool with custom scripts for Quote of the Day and This Day in History. [...]

  2. The Metal Wallpaper Clock Desktop [Featured Desktop] Says:

    [...] GeekTool with custom scripts for Quote of the Day and This Day in History. [...]

  3. The Metal Wallpaper Clock Desktop [Featured Desktop] | GeekStream Says:

    [...] GeekTool with custom scripts for Quote of the Day and This Day in History. [...]

  4. The Metal Wallpaper Clock Desktop [Featured Desktop] | PingBrain Says:

    [...] GeekTool with custom scripts for Quote of the Day and This Day in History. [...]

  5. The Metal Wallpaper Clock Desktop [Featured Desktop] « Coolbeans Says:

    [...] GeekTool with custom scripts for Quote of the Day and This Day in History. [...]

  6. The Metal Wallpaper Clock Desktop [Featured Desktop] · TechBlogger Says:

    [...] GeekTool with custom scripts for Quote of the Day and This Day in History. [...]

  7. The Metal Wallpaper Clock Desktop [Featured Desktop] - 6520th Edition | Technology Revealed Says:

    [...] GeekTool with custom scripts for Quote of the Day and This Day in History. [...]

  8. innovation604 News Portal » The Metal Wallpaper Clock Desktop [Featured Desktop] Says:

    [...] GeekTool with custom scripts for Quote of the Day and This Day in History. [...]

  9. The Metal Wallpaper Clock Desktop [Featured Desktop] | Diy all the Way Says:

    [...] GeekTool with custom scripts for Quote of the Day and This Day in History. [...]

  10. The Metal Wallpaper Clock Desktop [Featured Desktop] | Raise Your Marketing IQ Says:

    [...] GeekTool with custom scripts for Quote of the Day and This Day in History. [...]

  11. The Metal Wallpaper Clock Desktop [Featured Desktop] | Beyond Tech - Technology Ahead Of Your Imagination Says:

    [...] GeekTool with custom scripts for Quote of the Day and This Day in History. [...]

  12. The Metal Wallpaper Clock Desktop [Featured Desktop] | Techno Portal Says:

    [...] GeekTool with custom scripts for Quote of the Day and This Day in History. [...]

  13. Top 9 Air Apps on my Mac | Apple Views « mensonblog Says:

    [...] A Small List of Common GeekTool User Commands [...]

Advertise Here
Advertise Here

Translate

    Translate to:

Custom Desktop Group

If you have any ideas or topics you’d like to see on Apple Views, click on the Contact Us tab in the top left-hand corner and we will look into it. Picture 2We would like to invite our readers who create their own custom desktops to submit their designs to Appleviews Flickr group. (click the icon). When submitting your desktop screenshot, please include the tools used to create it and a short comment as to what inspired you to create the design. Once a week, we will post the design here on Applevie.ws for other readers to see. It is still 'brand new' and we'd like to see everyone's masterpieces. Subscribe to Apple Views by Email Join in on the fun and share ideas with us!