set volume in percentages and update wjt

This commit is contained in:
Felix Van der Jeugt 2016-12-15 10:53:16 +01:00
parent bb3bf1460c
commit 30253c598a

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
current="$(amixer get Master | sed -n '/%/s/.*\[\(.*\)%\].*/\1/p' | head -1)" current="$(amixer get Master | sed -n '/%/s/.*\[\(.*\)%\].*/\1/p' | head -1)"
wjt -t -x "$current" | while read next; do wjt -x "$current" | while read next; do
amixer -q set Master "$next" amixer -q set Master "$next%"
done done