mpd - improve ncmpcpp config in general and show pauze always

This commit is contained in:
Felix Van der Jeugt 2015-04-14 01:18:05 +02:00
parent fbe9883fe6
commit 37a8b840ac
2 changed files with 8 additions and 8 deletions

View file

@ -3,8 +3,8 @@
if mpc -q; then
case "$(mpc status | sed -n '2s/\[\(\w*\)\].*/\1/p')" in
"playing") icon="<icon=music/play.xpm/>" ;;
"paused") icon="<icon=music/pause.xpm/>" ;;
*) icon="<icon=music/pause.xpm/>" ;;
esac
echo '<action=`urxvtc -e "ncmpcpp"`>'"$icon"'</action>'
echo '<action=`urxvtc -e "ncmpcpp" "-c" "~/.config/ncmpcpp/config"`>'"$icon"'</action>'
fi