From b4b20751c34a9b353b0b25919a796c71e472ecf1 Mon Sep 17 00:00:00 2001 From: Sadoon Al-Bader Date: Mon, 29 Jun 2020 03:24:44 +0300 Subject: [PATCH 1/2] 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 From ed6f8b0fde698a78b56db0fb2c64ed7c2ec5fc5d Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Wed, 8 Jul 2020 08:58:12 -0400 Subject: [PATCH 2/2] xbacklight --- .local/bin/statusbar/battery | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.local/bin/statusbar/battery b/.local/bin/statusbar/battery index 59fdff0..f42d096 100755 --- a/.local/bin/statusbar/battery +++ b/.local/bin/statusbar/battery @@ -9,9 +9,10 @@ case $BLOCK_BUTTON in ♻: stagnant charge 🔌: charging ⚡: charged -❗: battery very low!" ;; - 4) sudo light -A 10 ;; - 5) sudo light -U 10 ;; +❗: battery very low! +- Scroll to change adjust xbacklight." ;; + 4) xbacklight -inc 10 ;; + 5) xbacklight -dec 10 ;; 6) "$TERMINAL" -e "$EDITOR" "$0" ;; esac