dwmblocks/daemons/pulse_daemon.sh
2021-07-26 00:55:40 +05:30

10 lines
266 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 IFS='' read -r output ; do
case "$output" in
*" sink "*) sigdwmblocks 1 ;;
esac
done