configuration/local/bin/sslider.sh

6 lines
167 B
Bash
Raw Normal View History

2016-12-14 09:56:38 +01:00
#!/bin/sh
current="$(amixer get Master | sed -n '/%/s/.*\[\(.*\)%\].*/\1/p' | head -1)"
wjt -x "$current" | while read next; do
amixer -q set Master "$next%"
2016-12-14 09:56:38 +01:00
done