summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColby Thomas <coloradocolby@gmail.com>2021-10-17 22:57:47 -0600
committerColby Thomas <coloradocolby@gmail.com>2021-10-17 22:57:47 -0600
commit995cff49e6c1aca486ead9c1ced973d575d44e64 (patch)
treeed7f8c31c2087b17027a528dff28453d6f294a4a
parent163738e6ad1954c8a8a16dae98829c51cf9da4be (diff)
downloadeibhear-995cff49e6c1aca486ead9c1ced973d575d44e64.tar.gz
eibhear-995cff49e6c1aca486ead9c1ced973d575d44e64.tar.zst
eibhear-995cff49e6c1aca486ead9c1ced973d575d44e64.zip
muting volume when 0%, space between icon and percentage
-rwxr-xr-x.local/bin/statusbar/sb-volume8
1 files 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%"