12 lines
157 B
Bash
Executable File
12 lines
157 B
Bash
Executable File
#!/bin/sh
|
|
|
|
poll() {
|
|
pamixer --get-volume | grep -E '^[0-9]+$'
|
|
}
|
|
|
|
pactl subscribe | while read -r ;do
|
|
case "$REPLY" in
|
|
*change*) poll ;;
|
|
esac
|
|
done
|