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