cli brightness app
Find a file
Denis Butorin 79e3060871
Update light.c
Dummy error :)
2025-01-24 03:35:13 +03:00
light.c Update light.c 2025-01-24 03:35:13 +03:00
Makefile Add compile options and change light.c 2024-08-28 07:03:41 +04:00
README.md Create README.md 2024-08-28 08:17:28 +04:00

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

  1. Clone the repository
    git clone https://github.com/dekabu/light
    cd light
    
  2. Determine where the brightness and max_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.

  1. Correct define in light.c

    6. #define PREFIX <put your prefix>
    
  2. Build

    make
    
  3. Install

    make install