Tag Archive | "user commands"

Tags: , ,

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

Comments (18)

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

22 visitors online now
22 guests, 0 members