diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/guiscripts/mlight | 10 | ||||
-rwxr-xr-x | bin/guiscripts/plight | 5 | ||||
-rwxr-xr-x | bin/guiscripts/ppamixer | 5 |
3 files changed, 20 insertions, 0 deletions
diff --git a/bin/guiscripts/mlight b/bin/guiscripts/mlight new file mode 100755 index 0000000..41d6f90 --- /dev/null +++ b/bin/guiscripts/mlight @@ -0,0 +1,10 @@ +#!/bin/sh +light="$(light -G)" +light="$(printf '30 +60 +90' | commander -c -w 6 -y 3 -p "(${light%.*})")" +[ "$light" ] || exit 1 +light -S "$light" + +[ -p ~/.config/wob/pipe ] && + printf '%s\n' "$light" > ~/.config/wob/pipe diff --git a/bin/guiscripts/plight b/bin/guiscripts/plight new file mode 100755 index 0000000..459bbfa --- /dev/null +++ b/bin/guiscripts/plight @@ -0,0 +1,5 @@ +#!/bin/sh + +light $1 $2 +light="$(light -G)" +printf '%s\n' "${light%.*}" > ~/.config/wob/pipe diff --git a/bin/guiscripts/ppamixer b/bin/guiscripts/ppamixer new file mode 100755 index 0000000..e7d583a --- /dev/null +++ b/bin/guiscripts/ppamixer @@ -0,0 +1,5 @@ +#!/bin/sh +pamixer $1 $2 +volume="$(pamixer --get-volume)" +>&2 printf "volume: %s\n" "$volume" +printf '%s\n' "$volume" > ~/.config/wob/pipe |