diff --git a/.config/eww/scripts/get-volume b/.config/eww/scripts/get-volume index 9e4a1d2..5233d88 100755 --- a/.config/eww/scripts/get-volume +++ b/.config/eww/scripts/get-volume @@ -12,6 +12,9 @@ getvolume() { } getvolume -pactl subscribe | grep -E 'sink|source' | while read -r line; do - getvolume +pactl subscribe | while read -r line; do + if [[ "${line}" =~ sink|source ]]; then + echo 'it is' + getvolume + fi done