mirror of https://github.com/artizirk/dotfiles
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
224 B
11 lines
224 B
5 years ago
|
#!/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
|