mirror of https://github.com/artizirk/dotfiles
Arti Zirk
5 years ago
2 changed files with 11 additions and 1 deletions
@ -0,0 +1,10 @@
@@ -0,0 +1,10 @@
|
||||
#!/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 |
Loading…
Reference in new issue