diff options
Diffstat (limited to 'ratpoison/panel')
-rwxr-xr-x | ratpoison/panel/music | 4 | ||||
-rwxr-xr-x | ratpoison/panel/panel_bar | 2 |
2 files changed, 5 insertions, 1 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 diff --git a/ratpoison/panel/panel_bar b/ratpoison/panel/panel_bar index 55f2403..0b2e55e 100755 --- a/ratpoison/panel/panel_bar +++ b/ratpoison/panel/panel_bar @@ -5,8 +5,8 @@ num_mon=$(bspc query -M | wc -l) -while read -r line ; do source ./panel_colors +while read -r line ; do case $line in C*) cpu="%{F$COLOR_STATUS_FG}%{B$COLOR_STATUS_BG} C:${line#?} %{B-}%{F-}" |