sslide with actual values, as the bar provides the ratio

This commit is contained in:
Felix Van der Jeugt 2017-01-17 11:38:50 +01:00
parent 7417e0b3c4
commit 80fff2ab4c

View File

@ -1,5 +1,7 @@
#!/bin/sh #!/bin/sh
current="$(amixer get Master | sed -n '/%/s/.*\[\(.*\)%\].*/\1/p' | head -1)" uplimit="$(amixer get Master | grep "Limits:" | tr -s ' ' | cut -d' ' -f6)"
wjt -x "$current" | while read next; do lolimit="$(amixer get Master | grep "Limits:" | tr -s ' ' | cut -d' ' -f4)"
amixer -q set Master "$next%" 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"
done done