cli brightness app
light.c | ||
Makefile | ||
README.md |
Light 🔆
Lightweight unix console app for brightness control.
Examples
Get
$ light
> 128/255 (50%)
Set
$ light 100
> 100/255 (39%)
$ light 70%
> 179/255 (70%)
Increment
$ light -29
> 150/255 (58%)
$ light +5%
> 161/255 (61%)
Install
- Clone the repository
git clone https://github.com/dekabu/light cd light
- Determine where the
brightness
andmax_brightness
files are located on your system (/sys/class/backlight/amdgpu_bl0/* by default)
Warning
Make sure your user has write access to the
brightness
file.
-
Correct define in
light.c
6. #define PREFIX <put your prefix>
-
Build
make
-
Install
make install