You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Lux is a POSIX-compliant Shell script to control brightness
Perks
No requirement: POSIX-compliant (minimal:usermod, udevadm)
Lightweight: ~200 lines
Auto: Find the best max-brightness-value controller automatically
Threshold: Restrict brightness value with min/max relevant limits
Installation
Package Manager Utilities
$ pacman -S lux
Manually
Installlux:
$ git clone https://github.com/Ventto/lux.git$cd lux$ sudo make install
To control the brightness level, you need to setup the relevant group permissionspermanently. So first, runlux withsudo and then logout/login.
If you are in a hurry, you can directly get these permissions properly in a new shell:
$ newgrp video
Usage
Usage: lux OPERATION [-c CONTROLLER_NAME] [-m MIN] [-M MAX]Brightness option values are positive integers.Percent mode, add "%" after values (operation options only).Without option, it prints controller name and brightness info.Information: -h Prints this help and exits -v Prints version info and existsThresholds (can be used in conjunction): -m MIN Set the brightness MIN (raw value) -M MAX Set the brightness MAX (raw value)Operations (with percent mode): -a VALUE[%] Increase the brightness VALUE -s VALUE[%] Subtract the brightness VALUE -S VALUE[%] Set the brightness VALUE (thresholds will be ignored) -g Print the current brightness raw value -G Print the current brightness percentageControllers: -c CONTROLLER_NAME Set the controller to use. Use any CONTROLLER_NAME in /sys/class/backlight.