diff options
author | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2015-04-02 21:35:49 +0200 |
---|---|---|
committer | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2015-04-02 21:35:49 +0200 |
commit | fc5c8292d28e8bbb39e2ad258fa75e36fe7750e8 (patch) | |
tree | a3e4f0dfb813e7c0773f6188d0ee2f291daf7fc1 /ratpoison/panel/music | |
parent | 0b50bfaefb2d117c2101f9b34d9fdf2b27d44f39 (diff) | |
download | dotfiles-fc5c8292d28e8bbb39e2ad258fa75e36fe7750e8.tar.gz dotfiles-fc5c8292d28e8bbb39e2ad258fa75e36fe7750e8.tar.bz2 dotfiles-fc5c8292d28e8bbb39e2ad258fa75e36fe7750e8.zip |
eh
Diffstat (limited to 'ratpoison/panel/music')
-rwxr-xr-x | ratpoison/panel/music | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ratpoison/panel/music b/ratpoison/panel/music index caec3d7..2fb91d1 100755 --- a/ratpoison/panel/music +++ b/ratpoison/panel/music @@ -13,4 +13,8 @@ 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 +if [ $? -ne 0 ];then +echo 'mpd not alive'; +sleep 30; +fi done |