volume slider using wjt

This commit is contained in:
Felix Van der Jeugt 2016-12-14 09:56:38 +01:00
parent 5b5ccd3ade
commit bb3bf1460c
2 changed files with 6 additions and 0 deletions

View File

@ -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
View File

@ -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