diff options
author | Inigo Gutierrez <inigogf.95@gmail.com> | 2019-03-07 10:28:44 +0000 |
---|---|---|
committer | Inigo Gutierrez <inigogf.95@gmail.com> | 2019-03-07 10:28:44 +0000 |
commit | 6f05b0ca6b3fa89cc2203839ad3096be4ffe726a (patch) | |
tree | 3c4cc52196518b4d2ac42686d789f5e2fe15711e /i3blocks/i3vol.sh | |
parent | 833b8e5015be7fc10025a0815567d9eab8ed9713 (diff) | |
download | scripts-6f05b0ca6b3fa89cc2203839ad3096be4ffe726a.tar.gz scripts-6f05b0ca6b3fa89cc2203839ad3096be4ffe726a.zip |
Script changes tinkering with Arch.
Diffstat (limited to 'i3blocks/i3vol.sh')
-rwxr-xr-x | i3blocks/i3vol.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/i3blocks/i3vol.sh b/i3blocks/i3vol.sh index 0e6311e..f3a0745 100755 --- a/i3blocks/i3vol.sh +++ b/i3blocks/i3vol.sh @@ -5,8 +5,8 @@ case $BLOCK_BUTTON in 3) pgrep -x dunst >/dev/null && notify-send -h string:x-canonical-private-synchronous:i3volHint -t 2000 "Click for alsamixer" ;; esac -vol=$(pactl list sinks | grep Volumen: | awk '{print $5}') -mute=$(pactl list sinks | grep Silencio: | cut -d' ' -f2) +vol=$(pactl list sinks | grep "Volume:" | sed 1q | awk '{print $5}') +mute=$(pactl list sinks | grep "Mute:" | cut -d' ' -f2) if [ $mute = "no" ]; then echo "🔊 $vol" else |