configuration/config/xmobar/scripts/quodlibet
2015-03-23 23:15:26 +01:00

12 lines
254 B
Bash
Executable File

#!/bin/bash
status=$(quodlibet --status | cut -d' ' -f1)
case "$status" in
"playing") icon="<icon=music/play.xpm/>" ;;
"paused") icon="<icon=music/pause.xpm/>" ;;
*) ;;
esac
echo '<action=`quodlibet --toggle-window`>'"$icon"'</action>'