Improved pulse_daemon.sh

This commit is contained in:
Ashish Kumar Yadav 2020-09-01 12:28:54 +05:30
parent 70dda47a16
commit f6afe3c37f

View file

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