11 lines
267 B
Bash
Executable File
11 lines
267 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 "vimus"`>'"$icon"'</action>'
|
|
fi
|
|
|