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.
Code:
echo `cal` | 
sed "s/$(date +%e) / $(date +%e | sed 's/.*/@/g'!!delete!!) /" | 
sed s'/Su Mo Tu We Th Fr Sa//g' | 
sed s'/!!2space!!*/!!2space!!\|!!2space!!/g' | 
sed s'/^!!2space!!\|//' | sed s'/!!2space!!\|//' | sed s'/\|/!!2space!!/' | 
sed s'/\|/./g' | sed s"/$/ $(date +%A)/"

THQs
 
cpu usage

Currently, I'm using

Code:
ps -Aro %cpu,ucomm,user

to give me the cpu usage, but when i use this it has %CPU, UCOMM, and USER above each column. is there a way to skip these and have it just display the information?

EDIT:

I'm also looking for a shell command that will return my memory usage in a similar way, i've tried using different ones that use top, and i can't get any output.
 
Hey guys,
thread was a nice read i made a few desktops myself. Thank you all for the inspiration ;P
Screen%20shot%202009-10-05%20at%207.38.54%20PM.png

and this one im currently using
Screen%20shot%202009-10-08%20at%203.58.55%20PM.png
 
iChat Status Applescript

Hey!

I've written a little AppleScript to display the online status of my iChat Buddies. It displays them with their real name (as entered in the adress book) and colorizes the output by their status with ANSI colors:

bildschirmfoto20091008u.png


I use the script with NerdTool because it deals with ANSI colors natively but there's a geektool 2 build at hasseg.org, which supports colors too. Does GeekTool 3 support colors?

You call the Script by
Code:
osascript <path/to/script>

For updates or comments, please visit my website: http://bastian.stahmer.net because I'm not a frequent user of the macrumors forums.

Bastian
 
UGH... I just somehow lost ALL of my scripts set up in Geektool.. They didn't come up today after a reboot. I tried to dig through TimeMachine to see if there were any file I could restore, I found a few geektool.plist files, but those didn't contain the info... Is there some other file(s) that stores the active Geektool scripts that I can restore??

I'm running 2.1.2 on SL.
 
GeekTool scripts are all stored in
Code:
/Users/<user_name>/Library/Preferences/org.tynsoe.geektool.plist
restore this file from time machine and you'll restore your old GeekTool configuration.
 
Need Help

I can't find a working "Free Cpu: " script for Snow Leopard. Any help would be absolutely great. I want it to display Free Cpu: then the percent free/idle.
 
I'm looking for a script that will simply display an image from the HDD. It's pulled from the yahoo weather site, but I need to apply just the .png to a script so that I can add it in w/o modifying the actual wallpaper. Anyone have a simple script that will help me do that? Everything I've searched for simply puts me at the Yahoo! Weather script...
 
I'm looking for a script that will simply display an image from the HDD. It's pulled from the yahoo weather site, but I need to apply just the .png to a script so that I can add it in w/o modifying the actual wallpaper. Anyone have a simple script that will help me do that? Everything I've searched for simply puts me at the Yahoo! Weather script...

open prefs, click new > picture from the dropdown box, and copy the link into the box, if from ya HD append it with File://

it wont do animated pictures though, just shows them as stills :(, unless there is some script for that,
 
I'm a complete Unix/Terminal n00b - please help. Here's my code pinched from elsewhere for an Australian weather readout:

Code:
curl -s --connect-timeout 30 "ftp://ftp2.bom.gov.au/anon/gen/fwo/IDA00007.html" | grep "Hobart" | sed -e 's/<>//g' | sed -e 's/<\/TD>/!!/g' | sed -e 's/<B>//g' | sed -e 's/ //g' | awk -F!! '{print "Today: " $4 " " $6}{print "Tomorrow: " $7 " " $8 "- " $9}'

And here's the result:

Screenshot2009-10-15at85234PM.png


Similarly for current temperature:

Code:
curl -s --connect-timeout 30 "http://webservice.weatherzone.com.au/rss/wx.php?u=13145&lt=aploc&lc=15765&obs=1&fc=1&warn=1" | grep "Temperature" |  sed -e 's/%/%/g' | sed -e 's/°C//g' | sed -e 's/<b>//g' | sed -e 's/<\/b>//g' | sed -e 's/        //g' | sed -e 's/ deg /° /g' | sed -e 's/Â/ /g' | sed -e 's/Temperature/NOW/g'

And the result:

Screenshot2009-10-15at85447PM.png


Can someone tell me what's wrong with the code that it's putting in the unwanted text??
 
open prefs, click new > picture from the dropdown box, and copy the link into the box, if from ya HD append it with File://

it wont do animated pictures though, just shows them as stills :(, unless there is some script for that,

Easy enough. I figured it'd be more complicated! Thanks much.
 
I'm a complete Unix/Terminal n00b - please help. Here's my code pinched from elsewhere for an Australian weather readout:

Code:
curl -s --connect-timeout 30 "ftp://ftp2.bom.gov.au/anon/gen/fwo/IDA00007.html" | grep "Hobart" | sed -e 's/<>//g' | sed -e 's/<\/TD>/!!/g' | sed -e 's/<B>//g' | sed -e 's/ //g' | awk -F!! '{print "Today: " $4 " " $6}{print "Tomorrow: " $7 " " $8 "- " $9}'

And here's the result:

http://i48.photobucket.com/albums/f209/eurotrashbag/Screenshot2009-10-15at85234PM.png

Similarly for current temperature:

Code:
curl -s --connect-timeout 30 "http://webservice.weatherzone.com.au/rss/wx.php?u=13145&lt=aploc&lc=15765&obs=1&fc=1&warn=1" | grep "Temperature" |  sed -e 's/%/%/g' | sed -e 's/°C//g' | sed -e 's/<b>//g' | sed -e 's/<\/b>//g' | sed -e 's/        //g' | sed -e 's/ deg /° /g' | sed -e 's/Â/ /g' | sed -e 's/Temperature/NOW/g'

And the result:

http://i48.photobucket.com/albums/f209/eurotrashbag/Screenshot2009-10-15at85447PM.png

Can someone tell me what's wrong with the code that it's putting in the unwanted text??

theres weather scripts on the first 6 pages of this thread that would prolly work very well, go look ;)
https://forums.macrumors.com/posts/6869306/
 
Hey guys,
thread was a nice read i made a few desktops myself. Thank you all for the inspiration ;P
Screen%20shot%202009-10-05%20at%207.38.54%20PM.png

and this one im currently using
Screen%20shot%202009-10-08%20at%203.58.55%20PM.png

The bottom one is AMAZING!! You made that in PS, and then put the floating clock in there? Looks slick!
 
I'm looking for an easy itunes geektool command. anyone have any good suggestions?

I have spent the last 4 hours reading through this thread, and trying out my own.

I don't remember what page this was on, but this is what i did..

open up Applescript (Applications/Utilities/AppleScript)
paste this in there.

Run it, and save as iTunesInfo.scpt . You have to MAKE a folder called GeektoolScripts and place the script you just made into that folder.

The folder "GeektoolScripts" goes into /Users/Documents/

in Geektool, run a shell and type in
osascript ~/Documents/GeektoolScripts/iTunesInfo.scpt

It will look like this

Can't get more simple than that:)

One thing that I simply cannot find. I would like maybe the NBA scores or something. I saw someone do one for MLB. How would i go about doing this?
I found something (in my massive searches) that Panic! made (away back when) called WebSkin Desktop, or something like that, that essentially put on a bottom line effect with all the scores, but i am looking for something with Geektools. I would like to write my own, just don't know where to start...

Thanks for ANY info Leading to the production of this question:) :) !
 

Attachments

  • Screen shot 2009-10-15 at 11.42.32 PM.png
    Screen shot 2009-10-15 at 11.42.32 PM.png
    69.1 KB · Views: 166
  • Screen shot 2009-10-15 at 11.49.23 PM.png
    Screen shot 2009-10-15 at 11.49.23 PM.png
    665.4 KB · Views: 199
Vlc

Any ideas of how to get the current VLC track to show up via Geektool?

I use this for iTunes but can't work it out for VLC:

*****

on run
set info to ""
tell application "System Events"
set num to count (every process whose name is "iTunes")
end tell
if num > 0 then
tell application "iTunes"
if player state is playing then
set who to artist of current track
set what to name of current track
set info to "iTunes: " & what & " by " & who
end if
if player state is paused then
set info to "iTunes is currently paused"
end if
end tell
end if
if num ≤ 0 then
set info to "iTunes is currently closed"
end if
return info
end run

*****

Thanks.
 
My Desktop

Suggestions? If anyone has a script that displays "% idle" for cpu and that works on snow leopard please share.
 

Attachments

  • Screen_shot_2009-10-21_at_8.40.08_PM.png
    Screen_shot_2009-10-21_at_8.40.08_PM.png
    991.2 KB · Views: 411
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.