Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
Not open for further replies.
how can i put up a second clock with a different timezone?

The script for this is

Code:
TZ=TIME-ZONE-NAME/UTC-#:## date +"LOCATION: %I:%M %p %a"
where TIME_ZONE_NAME is, unsurprisingly, the name of the timezone (can be found by searching for the location here and #:## is the time difference to UTC(GMT) ie GMT+5:00 Note: for some reason timezones that are GMT+X still need to be entered as UTC - X (not sure if this holds true to timezones that are GMT - X.

Some examples would be:
TZ=IST/UTC-5:30 date +"Chennai: %I:%M %p %a"
TZ=AEST/UTC-10 date + "Sydney: %I:%M %p %a"
 
Ok. I've incorporated some of the iTunes scripts that give a Artist Only display, Track and Album display and the Next 5 Songs display. Also added a picture of my NFL Team as training camp is opening. This is in addition to the traditional date and current conditions and horizontal calendar.
newgeekshot.png
 
Ok. I've incorporated some of the iTunes scripts that give a Artist Only display, Track and Album display and the Next 5 Songs display. Also added a picture of my NFL Team as training camp is opening. This is in addition to the traditional date and current conditions and horizontal calendar.
newgeekshot.png

The dates on the calendar don't line up with the correct days?
 
Hey guys, inspired by a picture off lifehacker, I decided to totally redo my geektool layout. Thought I'd share. I'm including the before and after. If you get a chance let me know if you think it's an improvement or not.

Also, feel free to ask for any of the scripts. In case anyone's interested, I figured out a way to make stock quotes appear in red if they gone down and green if they've gone up - but didn't include it in this screenshot.
 

Attachments

  • before.jpg
    before.jpg
    860.9 KB · Views: 527
  • after.jpg
    after.jpg
    1.1 MB · Views: 803
zzzz... Would you send me the HD: script? I have one now but I don't like the fact that it's in ##Gi format.

Thanks.
 
Hey guys, inspired by a picture off lifehacker, I decided to totally redo my geektool layout. Thought I'd share. I'm including the before and after. If you get a chance let me know if you think it's an improvement or not.

Also, feel free to ask for any of the scripts. In case anyone's interested, I figured out a way to make stock quotes appear in red if they gone down and green if they've gone up - but didn't include it in this screenshot.

The right side one looks much more professional - less geeky :)

Could you share the script please ?
 
Thanks but I meant the one showing the remaining space in your HD.

this will do space remaining:
df -g | awk '/\/dev\/disk0/ {print "HD - "$2-$3"G of "$2"G remaining ""("$5")" }';
yields: HD - 47G of 112G remaining (59%)

or:
df -g | awk '/\/dev\/disk0/ {print "HD - "$2-$3"G left"}';
yields: HD - 47G left

or:
df -g | awk '/\/dev\/disk0/ {print "HD - "100-$5"% left" }';
yields: HD - 41% left

Are any of those what you were looking for?
 
The right side one looks much more professional - less geeky :)

Could you share the script please ?

yeah, i agree. didn't realize how geeky the other one looked until iput them up side by side.

which scripts do you want?
 
try this, (from here):

Code:
df -h | grep disk0s2 | awk ‘{print “System:”, $3, “of”, $2, “-”, $4, “available”}’ | sed ’s/Gi/Gb/g’;

i could never get it to work though :(

Thats because it was using improper " and ' ... this should work:

Code:
df -h | grep disk0s2 | awk '{print "HD: ", $3, "of", $2, "-", $4, "available"}' | sed 's/Gi/Gb/g'
 
Here's my updated desktop... ask me for any of the script codes. Most are pretty standard, but the uptime is one i made. I always have my main monitor with windows on it, so i keep my 2nd display for my all scripts.

bowz_desktop-july26_09a.jpg
bowz_desktop-july26_09b.jpg


It's been raining forever in my city... so hence the mood of the desktop!! haha
 
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.