From b4b20751c34a9b353b0b25919a796c71e472ecf1 Mon Sep 17 00:00:00 2001 From: Sadoon Al-Bader Date: Mon, 29 Jun 2020 03:24:44 +0300 Subject: [PATCH] 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 :) --- .local/bin/statusbar/battery | 2 ++ 1 file changed, 2 insertions(+) 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