From bb3bf1460c4648d8428dc32541973a50d1c226fc Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Wed, 14 Dec 2016 09:56:38 +0100 Subject: [PATCH] volume slider using wjt --- local/bin/.gitignore | 1 + local/bin/sslider.sh | 5 +++++ 2 files changed, 6 insertions(+) create mode 100755 local/bin/sslider.sh diff --git a/local/bin/.gitignore b/local/bin/.gitignore index aab49c4..831e856 100644 --- a/local/bin/.gitignore +++ b/local/bin/.gitignore @@ -8,6 +8,7 @@ dmenu dmenu_path dmenu_run stest +wjt # shouldn't share this one with the world macaddress diff --git a/local/bin/sslider.sh b/local/bin/sslider.sh new file mode 100755 index 0000000..19e8729 --- /dev/null +++ b/local/bin/sslider.sh @@ -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