From 36104366aac0673723e09c8dda8cfa63f58ba9cd Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 11 May 2017 21:43:26 +0200 Subject: [PATCH] os+/+arch/bin/vol: check for osd_cat --- os/+arch/bin/vol | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/os/+arch/bin/vol b/os/+arch/bin/vol index a75ecf67..aebebed4 100755 --- a/os/+arch/bin/vol +++ b/os/+arch/bin/vol @@ -18,8 +18,11 @@ case $1 in ;; esac -killall -9 -q osd_cat &>/dev/null -osd_cat --font="10x20" --delay=2 --color=white --align=center --pos=bottom --barmode=percentage --percentage $($0) & +# community/xosd +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 $HOME/.config/panel/panel-notify :volume