diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-27 20:07:57 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-27 20:07:57 +0200 |
commit | 80a61f5f39b496507468a3b4ed474899880b9776 (patch) | |
tree | 237f703d26db19b06735171a3215df6e1edb8daf /bin/guiscripts/mlight | |
parent | 973e22d8f65f952188272b76167beca816501064 (diff) |
added new scripts
Diffstat (limited to 'bin/guiscripts/mlight')
-rwxr-xr-x | bin/guiscripts/mlight | 10 |
1 files changed, 10 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 |