5

Cubic Desktop

Posted in Collections by jvsanchez 131 days ago

Working from left to right, I have the date, split into three separate geeklets for formatting purposes. Next to the date is the time, also split for the same reason.

After the first separator bar, I have the current network IP address, which can display IPs for Airport, Ethernet, and iPhone tethering over USB & Bluetooth.

Below that is a Time Machine geeklet which i found on macosxhints that displays the state of my backups and the time since the last backup. It's written in Ruby and the time display is 6 hours off. Up and to the right is a simple Uptime & RAM geeklet.

After the second separator is my currently playing geeklet. It's actually several geeklets combined to look like one. There are two geeklets stacked on each other that display the current track info from iTunes or Spotify, with the iTunes geeklet set to not display anything if Spotify is open. Below that are two track progress bar geeklets, stacked, which display for iTunes and Spotify, depending on which is open. Spotify's has a green indicator, iTunes is blue. Finally, the names of the programs, Spotify & iTunes, are each two geeklets stacked on top of each other, one black, one white. The white one appears when the matching program is open (thus "lighting up" the open program) and disappears when it's closed so that black is displayed again. There's also a volume level geeklet in the center.

Finally the look is tied together using Candybar for the dock and icons, and a program called nocturne to blackout the menubar.


Geeklet files to download

Comments

User Avatar
GrogMalBlood 125 days ago
This is really cool. Scripts please!
User Avatar
rprebel 114 days ago
Ooh. This is nice. Seconding the call for scripts, especially the itunes/spotify section.
User Avatar
jvsanchez 29 days ago
Here's the iTunes Info Script:

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 "System Events"

set powerCheck to ((application processes whose (name is equal to "Spotify")) count)

if powerCheck = 1 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 "" & trackName & trackPaused & "

" & artistName & "

" & albumName

return totalData

end tell

And here's the Spotify Script:

tell application "System Events"

set myList to (name of every process)

end tell

if myList contains "Spotify" then

tell application "Spotify"

if player state is stopped then

set output to "Stopped"

else

set trackname to name of current track

set artistname to artist of current track

set albumname to album of current track

if player state is playing then

set output to trackname & "new_line" & artistname & "new_line" & albumname

else if player state is paused then

set output to trackname & " - Paused" & "new_line" & artistname & "new_line" & albumname

end if

end if

end tell

else

set output to ""

end if

Just copy and paste; The iTunes script gives priority to spotify if both are open. It assumes that you're using iTunes to charge/sync your phone and Spotify to play your music when both are running.

the progress bar i found on here... just search for it and you'll find it. :)

Log in to comment or register here.