summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
authorSadoon Al-Bader <s00034652@auk.edu.kw>2020-06-29 03:24:44 +0300
committerGitHub <noreply@github.com>2020-06-29 03:24:44 +0300
commitb4b20751c34a9b353b0b25919a796c71e472ecf1 (patch)
tree0f889bd9b6a4f431c0ccffe33326678ea3267822 /.local
parenta0c659d719f11c1606b4e19811a627277524424e (diff)
downloadeibhear-b4b20751c34a9b353b0b25919a796c71e472ecf1.tar.gz
eibhear-b4b20751c34a9b353b0b25919a796c71e472ecf1.tar.zst
eibhear-b4b20751c34a9b353b0b25919a796c71e472ecf1.zip
Add backlight control as a scroll function
This adds backlight control of monitor through scrolling. Requires "light" pacakage and that the user can run "sudo light" without a password, easily done through sudoers edit. Enjoy less eye strain :)
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/statusbar/battery2
1 files changed, 2 insertions, 0 deletions
diff --git a/.local/bin/statusbar/battery b/.local/bin/statusbar/battery
index 3536534..59fdff0 100755
--- a/.local/bin/statusbar/battery
+++ b/.local/bin/statusbar/battery
@@ -10,6 +10,8 @@ case $BLOCK_BUTTON in
🔌: charging
⚡: charged
❗: battery very low!" ;;
+ 4) sudo light -A 10 ;;
+ 5) sudo light -U 10 ;;
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
esac