2016-12-14 09:56:38 +01:00
|
|
|
#!/bin/sh
|
2017-01-17 11:38:50 +01:00
|
|
|
uplimit="$(amixer get Master | grep "Limits:" | tr -s ' ' | cut -d' ' -f6)"
|
|
|
|
lolimit="$(amixer get Master | grep "Limits:" | tr -s ' ' | cut -d' ' -f4)"
|
|
|
|
current="$(amixer get Master | grep "Mono:" | tr -s ' ' | cut -d' ' -f4)"
|
|
|
|
wjt -l "$lolimit" -u "$uplimit" -x "$current" | while read next; do
|
|
|
|
amixer -q set Master "$next"
|
2016-12-14 09:56:38 +01:00
|
|
|
done
|