From 43a2a7ab2dadb3deb8867831b120c50572218d6e Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Wed, 28 Dec 2016 21:14:46 +0000 Subject: specify mpc host consitently --- Panel/lemonbar/music | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Panel/lemonbar') diff --git a/Panel/lemonbar/music b/Panel/lemonbar/music index 2fb91d1..d9e1d45 100755 --- a/Panel/lemonbar/music +++ b/Panel/lemonbar/music @@ -2,17 +2,17 @@ while true;do -new=`mpc current` +new=`mpc -h 127.0.0.1 current` -if mpc | grep -q playing; then +if mpc -h 127.0.0.1 | grep -q playing; then symbol='p' else symbol='P' fi echo "$symbol`echo $new | cut --bytes 1-30`" -echo "K`mpc -h 127.0.0.1 volume | perl -pe 's/^volume://' | perl -pe 's/%$//' | perl -pe 's/^ //'`" -mpc idle > /dev/null +echo "K`mpc volume -h 127.0.0.1 | perl -pe 's/^volume://' | perl -pe 's/%$//' | perl -pe 's/^ //'`" +mpc -h 127.0.0.1 idle > /dev/null if [ $? -ne 0 ];then echo 'mpd not alive'; sleep 30; -- cgit v1.2.3-54-g00ecf