Command line tool to adjust your screen's brightness.
This tool only works on Linux systems.
git clone https://github.com/briansalehi/adjust-brightness.git
cd adjust-brightness
cmake -S . -B build -DCMAKE_BUILD_TYPE:STRING=release
cmake --build build --parallel
sudo cmake --build build --target install
You can query current brightness by simply running the tool in your command line:
adjust-brightness
Or adjusting brightness by giving percentage:
adjust-brightness 30
Note that adjusting brightness requires root privileges.
This work is licensed under MIT License.