diff options
Diffstat (limited to 'scripts/.local/bin/sb-volume')
| -rwxr-xr-x | scripts/.local/bin/sb-volume | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/scripts/.local/bin/sb-volume b/scripts/.local/bin/sb-volume deleted file mode 100755 index bfa7899..0000000 --- a/scripts/.local/bin/sb-volume +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -# Prints the current volume or MUT if muted. - -if [ "$(pamixer --get-mute)" = true ]; then - vol="MUT" -else - vol="$(pamixer --get-volume)" -fi - -if ! command -v pamixer ;then - vol="$(wpctl get-volume @DEFAULT_AUDIO_SINK@)" - case "$vol" in - *MUTED*) vol="MUT" ;; - *) vol=$(echo "100*$(echo "$vol" | cut -d' ' -f2)/1" | bc) ;; - esac -fi - -# for slstatus -printf "%s" "$vol" > "$XDG_RUNTIME_DIR/volume" - -# for dwmblocks -printf "%3d" "$vol" |
