mirror of
https://github.com/artizirk/dotfiles.git
synced 2024-11-29 10:50:59 +02:00
11 lines
224 B
Bash
Executable File
11 lines
224 B
Bash
Executable File
#!/bin/bash
|
|
OLD_VOL=0
|
|
pactl subscribe | grep --line-buffered "sink" |
|
|
while read; do
|
|
VOL=$(amixer get Master | grep -Po "[0-9]+(?=%)" | tail -1)
|
|
if [[ $VOL != $OLD_VOL ]]; then
|
|
tvolnoti-show $VOL
|
|
OLD_VOL=$VOL
|
|
fi
|
|
done
|