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:
parent
a0c659d719
commit
b4b20751c3
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue