Increases or decreases the screen brightness
- Download or clone this repo;
- Exec
chmod +x bright
; - Move
bright
to your path:sudo mv path/to/bright /usr/local/bin
IMPORTANT!
You must execute sudo chmod o+w /sys/class/backlight/intel_backlight/brightness
so that you can use this script without super user privileges.
bright up
will increase the screen brightness 5%.bright down
will decrease the screen brightness 5%.
- This was tested only for my personal needs (Ubuntu 18.04) since my new wireless keyboard has no function keys to control brightness. With this script, I was able to set new shortcuts to increase and decrease it.
- This script changes
/sys/class/backlight/intel_backlight
only. If you need to changedell_backlight
or something else maybe you could adapt this.