volume slider using wjt

This commit is contained in:
Felix Van der Jeugt 2016-12-14 09:56:38 +01:00
förälder 5b5ccd3ade
incheckning bb3bf1460c
2 ändrade filer med 6 tillägg och 0 borttagningar

Visa fil

@ -8,6 +8,7 @@ dmenu
dmenu_path
dmenu_run
stest
wjt
# shouldn't share this one with the world
macaddress

5
local/bin/sslider.sh Executable file
Visa fil

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