aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/statusbar/sb-volume
diff options
context:
space:
mode:
authorawy <awy@awy.one>2024-11-30 16:55:21 +0300
committerawy <awy@awy.one>2024-11-30 16:55:21 +0300
commitb893bee74dcbdc1e11daa98da39c49e6afecc9e6 (patch)
treecbf711641dac69e5879f165495231f948c0d63d2 /.local/bin/statusbar/sb-volume
parent18497419838d63c09fa86ed2217b94b7a2b2b32a (diff)
small fixes + sb-disk module
Diffstat (limited to '.local/bin/statusbar/sb-volume')
-rwxr-xr-x.local/bin/statusbar/sb-volume4
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/statusbar/sb-volume b/.local/bin/statusbar/sb-volume
index a7253f1..1aeceba 100755
--- a/.local/bin/statusbar/sb-volume
+++ b/.local/bin/statusbar/sb-volume
@@ -1,6 +1,6 @@
#!/bin/sh
-# Prints the current volume or 🔇 if muted.
+# Prints the current volume or ïš© if muted.
case $BLOCK_BUTTON in
1) setsid -w -f "$TERMINAL" -e pulsemixer; pkill -RTMIN+10 "${STATUSBAR:-i3blocks}" ;;
@@ -15,7 +15,7 @@ esac
vol="$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
-# If muted, print 🔇 and exit.
+# If muted, print ïš© and exit.
[ "$vol" != "${vol%\[MUTED\]}" ] && echo ïš© && exit
vol="${vol#Volume: }"