eww-config/scripts/track_volume

12 lines
157 B
Plaintext
Raw Normal View History

2024-03-30 14:30:52 +00:00
#!/bin/sh
poll() {
pamixer --get-volume | grep -E '^[0-9]+$'
}
2024-03-30 14:30:52 +00:00
pactl subscribe | while read -r ;do
case "$REPLY" in
*change*) poll ;;
2024-03-30 14:30:52 +00:00
esac
done