Fix get-volume sub

This commit is contained in:
Victor Timofei 2023-06-14 19:21:25 +03:00
parent 02cc4ed11c
commit fb1484e5ed
Signed by: vtimofei
GPG Key ID: B790DCEBE281403A
1 changed files with 5 additions and 2 deletions

View File

@ -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