From 995cff49e6c1aca486ead9c1ced973d575d44e64 Mon Sep 17 00:00:00 2001 From: Colby Thomas Date: Sun, 17 Oct 2021 22:57:47 -0600 Subject: [PATCH] muting volume when 0%, space between icon and percentage --- .local/bin/statusbar/sb-volume | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.local/bin/statusbar/sb-volume b/.local/bin/statusbar/sb-volume index 61588c3..dcfd0d6 100755 --- a/.local/bin/statusbar/sb-volume +++ b/.local/bin/statusbar/sb-volume @@ -19,10 +19,12 @@ vol="$(pamixer --get-volume)" if [ "$vol" -gt "70" ]; then icon="🔊" -elif [ "$vol" -lt "30" ]; then +elif [ "$vol" -gt "30" ]; then + icon="🔉" +elif [ "$vol" -gt "0" ]; then icon="🔈" else - icon="🔉" + echo 🔇 && exit fi -echo "$icon$vol%" +echo "$icon $vol%"