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 [...]

Translate

    Translate to:

Appleviews Notices

If you have any questions or suggestions for us, click here, fill out the form, and we do the best we can to answer your questions or look into the suggestions you offer. If you create your own custom desktops, we would like to add you to our Appleviews Flickr group. Just submit your designs to the Appleviews Flickr group. (click the icon). When submitting your desktop screenshot, please include a short description of how you created the design.If you have any views that you'd like to share, fill out the form here. Your article may appear here in the Appleviews User Views section. We look forward to seeing your views!

Who's Online

6 visitors online now
6 guests, 0 members