From fb1484e5ed1983dbb2abbb0959bd08a57f75906b Mon Sep 17 00:00:00 2001 From: Victor Timofei Date: Wed, 14 Jun 2023 19:21:25 +0300 Subject: [PATCH] Fix get-volume sub --- .config/eww/scripts/get-volume | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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