Posts Tagged ‘conky’
Music on Console: MoC for *nix – Updated
#! introduced me to MoC and I’ve always liked console music players but never found one that I was totally happy with. After some tinkering I’ve got MoC setup with my Acer’s multimedia keys, showing it’s playlist in Conky and scrobbling to Last.Fm.
While it may lack some of the “features” of Banshee or Exaile for example, it’s elegant super functional and handles my music the way I like.
Setting up MoCp to submit to Last.Fm.
Install lastfmsubmitd via apt-get:
sudo apt-get install lastfmsubmitid
You can also get it here: http://www.red-bean.com/decklin/lastfmsubmitd/
Add the followign to ~/.moc/config:
OnSongChange = “/usr/lib/lastfmsubmitd/lastfmsubmit –artist %a –title %t –length %d –album %b”
Add lastfm your login info to/etc/lastfmsubmitd.conf
sudo nano /etc/lastfmsubmitid.conf
That’s it!
Showing output of MoC in Conky:
Add the following to your .conkyrc
${alignc}${color1}${execpi 1 mocp -Q %state}${color}
${color1}Song: ${color2}${alignr}${execpi 1 mocp -Q %song}${color}
${color1}Artist: ${color2}${alignr}${execpi 1 mocp -Q %artist}${color}
${color1}Album: ${color2}${alignr}${execpi 1 mocp -Q %album}${color}
${color1}Time: ${color2}${alignr}${execpi 1 mocp -Q %tl} / ${execpi 1 mocp -Q %tt}${color}
Below is my original line, I’ve recently switched to using the line above as it allows for more customization.
${color1}${execpi 1 mocp -i | head | egrep -v ‘SongTitle|File:|TotalSec|CurrentSec|CurrentTime’}
You can read the mocp man page to find alternate values to show.
Conky does have it’s own variables for MOCP however I found on Ubuntu/Crunchbang the output is unreliable at times, and flickers on screen.
Linux Screenshot Goodness
I regularly post my Linux desktop screenshots in an attempt to show others just how versitile and user friendly Linux has become. I recently switched back to Ubuntu and as usual I’m running Gnome. The background is a picture I took over the Spring Garden St. bridge of the Schuylkill River heading south toward Center City Philadelphia while riding a SEPTA bus. The system monitor is my adaptation of Conky/Conky-Colors



