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 :)
This commit is contained in:
Sadoon Al-Bader 2020-06-29 03:24:44 +03:00 committed by GitHub
parent a0c659d719
commit b4b20751c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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