- Joined
- Dec 23, 2007
- Messages
- 847
- Reaction score
- 20
- Points
- 18
- Location
- Claremont, Ca
- Your Mac's Specs
- iPod Nano 4gb, 20" 2.66 GHz Core 2 Duo, 2GB of ram, ATI HD 2600 pro
Here's mine, I'm still working on it a bit.
Just thought it would be appropriate.
Just thought it would be appropriate.
Alright s starting at the top i got:
Date:
Day:
Date:Code:date +%A
Month:Code:date +%d
Time:Code:date +%B
AM/PM:Code:date +"%I:%M"
Code:date +"%p"
And then i played around individually with the size, font and color.
Underneath that i got the Weather:
Code:curl --silent "http://weather.yahooapis.com/forecastrss?p=YOURTOWN=c" | grep -E '(Current Conditions:|C<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's///' -e 's/<\/description>//'
In the middle there i got my Song Info:
Code:osascript /Users/COMPUTER-NAME/Music/itunes2.scpt
Which is the location of this script that you gotta save on your drive:
Code:tell application "System Events" set powerCheck to ((application processes whose (name is equal to "iTunes")) count) if powerCheck = 0 then return "" end if end tell tell application "iTunes" try set playerstate to (get player state) end try if playerstate = paused then set trackPaused to " (paused)" else set trackPaused to "" end if if playerstate = stopped then return "Stopped" end if set trackID to the current track set trackName to the name of trackID set artistName to the artist of trackID set albumName to the album of trackID set totalData to "Track : " & trackName & trackPaused & " Artist : " & artistName & " Album : " & albumName return totalData end tell
Underneath that i got my Uptime:
Code:uptime | awk '{print "UPTIME : " $3 " " $4 " " $5 " " }'; top -l 1 | awk '/PhysMem/ {print "RAM : " $8 " "}' ; top -l 2 | awk '/CPU usage/ && NR > 5 {print $6, $7=":", $8, $9="user ", $10, $11="sys ", $12, $13}'
Then the IP:
Code:ifconfig en1 | grep "inet " | awk '{print $2}'
The Drive info:
Code:df -h | grep disk0s3 | awk '{print "Macintosh HD:", $2, "total,", $3, "used,", $4, "remaining"}'
Aaaand the CPU Monitor showing all the running processes:
Code:top -ocpu -FR -l2 -n20 | grep '^....[1234567890] ' | grep -v ' 0.0% ..:' | cut -c 1-24,33-42,64-77
Then i played around with fonts, colors and sizes!
All of them are shell commands. Hope this helps!!
this look verry nice, but where would i code that?
i actually googled around for a bit some other forums and what not and found it already, but thanks anywaysUse a program called Geek Tool. Just google it and you will find it, free, its confusing at first for some but once you get the hang of it, you can do all kinds of cool **** with your desktop!