dwmblocks/daemons/pulse_daemon.sh
2021-03-08 23:08:00 +05:30

10 lines
256 B
Bash
Executable file

#!/bin/sh
# This script should be autostarted with X session
# 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