dwmblocks/daemons/pulse_daemon.sh

10 lines
256 B
Bash
Raw Normal View History

2020-07-18 12:00:48 +00:00
#!/bin/sh
# This script should be autostarted with X session
2021-02-10 20:35:31 +00:00
# It signals volume block to update on audio related events
2020-07-06 20:06:10 +00:00
pactl subscribe |
while read -r output ; do
case $output in
2020-09-01 06:58:54 +00:00
*"sink "*) sigdwmblocks 1 ;;
esac
2020-07-06 20:06:10 +00:00
done