dwmblocks/daemons/pulse_daemon.sh

10 lines
266 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 |
2021-04-08 09:16:09 +00:00
while IFS='' read -r output ; do
2021-07-25 19:25:40 +00:00
case "$output" in
2021-04-08 09:16:09 +00:00
*" sink "*) sigdwmblocks 1 ;;
2020-09-01 06:58:54 +00:00
esac
2020-07-06 20:06:10 +00:00
done