dwmblocks/daemons/pulse_daemon.sh
2021-02-11 02:05:31 +05:30

10 lines
252 B
Bash
Executable file

#!/bin/sh
# This script should be autostarted on startup
# It signals volume block to update on audio related events
pactl subscribe |
while read -r output ; do
case $output in
*"sink "*) sigdwmblocks 1 ;;
esac
done