MOC info with Conky

It checks if MOC (mocp) is running and gets the song name and artist.
Then, putting this line in the .conkyrc file, the script executed by conky and the info is shown:
${exec /path/to/mocconky.sh}

Score: 8.0000/10


piraja says:
Thanks for this! Is there a way to modify line 15 so that $ARTISTA and $TITULO are printed on two separate lines?

As a tip, I added "scroll 80" in Conky, as follows:

${scroll 80 ${exec ~/.scripts/mocconky.sh} }

(1/19/2009)
piraja says:
Oh, another thing: Could you explain "cut -f2 -d" to an ignorant novice? Now the artist and title are cut too short, I think. Actually, since I use "${scroll 80 " I don't really want the "cut" function at all, but if I remove " | cut -f2 -d", the artist and title are no longer printed at all.

As you see, I don't know much about writing scripts and modifying them (yet).

Grazie!

(1/19/2009)
piraja says:
I found the answers, modified your script and made a two-part version: see http://www.naslu.com/piraja/

I hope you don't mind - naturally I gave you credit for the original snippet.

(1/19/2009)

Would you like to comment?
Sign up for a free account or sign in (if you are already a member).


URL:


Embed:



Uploaded on 5/12/2007 12:00:00 AM
by santix

Programming Language:
Bash

Tags:
conky 
moc 
mocp 

Viewed 3555 times
Select language: Español | English