configuration/config/xmobar/scripts/music
Felix Van der Jeugt 9d0bf39c99 actually, ncmpcpp wasn't so bad
This reverts commit e75a3d568d.
2016-02-22 14:18:33 +01:00

11 lines
301 B
Bash
Executable File

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