aboutsummaryrefslogtreecommitdiff
path: root/ratpoison/panel/music
blob: 6190dbce004905f4190aa313250d68def5c5f15f (plain)
1
2
3
4
5
6
7
8
9
10
11
while true;do
if mpc | grep -q playing; then  
echo "p`mpc current`" | cut --bytes 1-40
echo "K`mpc -h 127.0.0.1 volume | perl -pe 's/^volume://' | perl -pe 's/%$//' | perl -pe 's/^ //'`"
else
echo "P`mpc current`" | cut --bytes 1-40
sleep 1;
echo "K`mpc -h 127.0.0.1 volume | perl -pe 's/^volume://' | perl -pe 's/%$//' | perl -pe 's/^ //'`"
fi
sleep 5;
done