diff options
| author | Sadoon Al-Bader <s00034652@auk.edu.kw> | 2020-06-29 03:24:44 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-29 03:24:44 +0300 |
| commit | b4b20751c34a9b353b0b25919a796c71e472ecf1 (patch) | |
| tree | 0f889bd9b6a4f431c0ccffe33326678ea3267822 /.local/bin/statusbar/battery | |
| parent | a0c659d719f11c1606b4e19811a627277524424e (diff) | |
| download | eibhear-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/bin/statusbar/battery')
| -rwxr-xr-x | .local/bin/statusbar/battery | 2 |
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 |
