summaryrefslogtreecommitdiffstats
path: root/.local/bin/statusbar/sb-volume
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/statusbar/sb-volume')
-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%"