You are not logged in.

#1 2010-11-11 16:27:44

finh
Member
Registered: 2010-10-31
Posts: 22

[SOLVED] DWM conky mpd problem

Hi, I'm having trouble with setting conky-cli to only display {mpd_smart} (the artist and title) if the song is playing. If the song is paused or stopped, I just want conky to display {mpd_status}.

Can this be achieved? I've dabbled with if_mpd_playing but haven't had much success.

Thanks.

Last edited by finh (2010-11-12 22:23:14)

Offline

#2 2010-11-12 22:22:50

finh
Member
Registered: 2010-10-31
Posts: 22

Re: [SOLVED] DWM conky mpd problem

I've solved my problem after extensive goolging, and here is the line in .conkyrc, should anyone else need it.

${if_match "${mpd_status}" =="Playing"}$mpd_smart $else${mpd_status}$endif\

This only displays the Artist and Title of the song if it is PLAYING, if it's paused or stopped, it will display so respectively.

Offline

Board footer

Powered by FluxBB