dwmblocks/blocks/pulse_daemon.sh
2020-07-07 01:36:10 +05:30

8 lines
152 B
Bash
Executable file

#!/bin/dash
pactl subscribe |
while read -r output ; do
if [ -z "${output##*sink *}" ] ; then
sigdsblocks 1
fi
done