configuration/local/bin/sslider.sh
2016-12-15 10:53:16 +01:00

6 lines
167 B
Bash
Executable File

#!/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%"
done