os+/+arch/bin/vol: check for osd_cat

This commit is contained in:
Henrik Lissner 2017-05-11 21:43:26 +02:00
parent 7f43f56e71
commit 36104366aa

View file

@ -18,8 +18,11 @@ case $1 in
;; ;;
esac esac
killall -9 -q osd_cat &>/dev/null # community/xosd
osd_cat --font="10x20" --delay=2 --color=white --align=center --pos=bottom --barmode=percentage --percentage $($0) & if command -v osd_cat >/dev/null; then
killall -9 -q osd_cat &>/dev/null
osd_cat --font="10x20" --delay=2 --color=white --align=center --pos=bottom --barmode=percentage --percentage $($0) &
fi
# Report to lemonbar, if active # Report to lemonbar, if active
$HOME/.config/panel/panel-notify :volume $HOME/.config/panel/panel-notify :volume