fix mute-toggle

auto-flake-update
Yorick van Pelt 2013-06-05 17:04:23 +02:00
parent 1b212604e9
commit 3e2cf9b737
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ sink=$(pacmd info|grep "Default sink name"|awk '{print $4}')
let line=$(pacmd list-sinks|grep -n $sink|sed '{s/://}'|awk '{print $1}')
# add 12 for "muted" line
let line=($line + 12)
let line=($line + 10)
# extract mute status from that line
mute=$(pacmd list-sinks|awk 'NR==i"'"$line"'"{print $2}')