diff options
author | awy <awy@awy.one> | 2024-11-30 16:55:21 +0300 |
---|---|---|
committer | awy <awy@awy.one> | 2024-11-30 16:55:21 +0300 |
commit | b893bee74dcbdc1e11daa98da39c49e6afecc9e6 (patch) | |
tree | cbf711641dac69e5879f165495231f948c0d63d2 /.local/bin/statusbar/sb-volume | |
parent | 18497419838d63c09fa86ed2217b94b7a2b2b32a (diff) |
small fixes + sb-disk module
Diffstat (limited to '.local/bin/statusbar/sb-volume')
-rwxr-xr-x | .local/bin/statusbar/sb-volume | 4 |
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: }" |