Rhythmbox from the command line

So I was playing around with my conky config and I thought it’d be cool to be able to see my “now playing” song from it. Conky has some built in bits for that kind of thing in mpd but that’s no use to me since I use rhythmbox to listen to my music. A bit of googling around came up with some hits on using dbus-send to find the info [1,2] but the output was a little more raw than I was hoping for. While I was have a brief look through the rhythmbox manpage I noticed down the bottom of the page:


SEE ALSO
rhythmbox-client(1).

Aaah, how handy 😀 So issuing a rhythmbox-client --print-playing gives me this (the last line of the screenshot):

rhythmbox-client and conky now playing screenshot

rhythmbox-client can also handly play/pause, stop, next, previous, skip, add songs to the queue and other stuff to rhythmbox, all from the command line. In my .conkyrc I put the following line to give the “Now Playing” output:

${color #5b6dad}Now Playing: ${color}${exec /usr/bin/rhythmbox-client --print-playing}

Goodbye 2007

Here’s to 2007. Can’t say it was great year but I guess it wasn’t that bad either (besides Dad getting bowel cancer but he seems to be on the mend, so its all good).

darkenergy 20071231

Here’s my current desktop at work. I’m running fluxbox 1.0rc2 (guess I should upgrade it to 1.0 sometime huh?), mrxvt with full transparency with window decorations turned off. All the stats and info on the left is conky. Love it.

I guess one of my goals for the new year is to perhaps blog a bit more (yeah, we all say that don’t we huh?) If you’re curious what’s travelling through my brain, you can always check out my del.icio.us bookmarks.