From f6afe3c37f1464cafb84a7712824d875bba8b5aa Mon Sep 17 00:00:00 2001 From: Ashish Kumar Yadav Date: Tue, 1 Sep 2020 12:28:54 +0530 Subject: [PATCH] Improved pulse_daemon.sh --- daemons/pulse_daemon.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/daemons/pulse_daemon.sh b/daemons/pulse_daemon.sh index cfbdccd..f051374 100755 --- a/daemons/pulse_daemon.sh +++ b/daemons/pulse_daemon.sh @@ -1,5 +1,7 @@ #!/bin/sh pactl subscribe | while read -r output ; do - [ -z "${output##*sink *}" ] && sigdwmblocks 1 + case "$output" in + *"sink "*) sigdwmblocks 1 ;; + esac done