diff options
Diffstat (limited to 'scripts/.local/bin/sb-volume')
| -rwxr-xr-x | scripts/.local/bin/sb-volume | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/.local/bin/sb-volume b/scripts/.local/bin/sb-volume index be07c93..d9387b1 100755 --- a/scripts/.local/bin/sb-volume +++ b/scripts/.local/bin/sb-volume @@ -2,14 +2,14 @@ # Prints the current volume or MUT if muted. -[ $(pamixer --get-mute) = true ] && echo "MUT" && exit - -vol="$(pamixer --get-volume)" - -if [ "$vol" -gt "0" ]; then - icon="" +if [ "$(pamixer --get-mute)" = true ]; then + vol="MUT" else - echo "MUT" && exit + vol="$(pamixer --get-volume)" fi +# for slstatus +printf "%s" "$vol" > /tmp/volume + +# for dwmblocks printf "%3d" $vol |
