From 76569ceb4a991f7ba5789778682ebe0d3ca5bc57 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Yadav Date: Thu, 8 Apr 2021 14:46:09 +0530 Subject: [PATCH] Improved pulse_daemon.sh --- daemons/pulse_daemon.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemons/pulse_daemon.sh b/daemons/pulse_daemon.sh index 5bf1da1..e732220 100755 --- a/daemons/pulse_daemon.sh +++ b/daemons/pulse_daemon.sh @@ -2,8 +2,8 @@ # This script should be autostarted with X session # It signals volume block to update on audio related events pactl subscribe | - while read -r output ; do + while IFS='' read -r output ; do case $output in - *"sink "*) sigdwmblocks 1 ;; + *" sink "*) sigdwmblocks 1 ;; esac done