diff options
Diffstat (limited to '.config/eww/scripts/volume-listener')
-rwxr-xr-x | .config/eww/scripts/volume-listener | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.config/eww/scripts/volume-listener b/.config/eww/scripts/volume-listener index 9c0368c..640548d 100755 --- a/.config/eww/scripts/volume-listener +++ b/.config/eww/scripts/volume-listener @@ -1,5 +1,7 @@ #!/bin/sh +readonly SINK=@DEFAULT_AUDIO_SINK@ + stdbuf -oL amixer events \ | stdbuf -oL sed 's/event value: //' \ | while IFS= read -r line @@ -10,7 +12,7 @@ stdbuf -oL amixer events \ x=${x%\'} case "$x" in 'Master Playback'*) - wpctl get-volume @DEFAULT_AUDIO_SINK@ \ + wpctl get-volume $SINK \ | awk ' /MUTED/ { print "icon=" |