A simple script to help manage brightness of NVIDIA cards that have strange "brightness steps"
This is a bash script that wraps brightnessctl
so the dependencies are:
- Bash -> almost all linux distro should have it installed by default
- brightnessctl -> to interact with your video card brightness
- notify-send -> you shold have installed - to receive a feedback of the action performed
To get the usage message just call it with no arguments
backlight
To increase brightness of 10 point
backlight up 10
or using a percentage
backlight down 10%
An optional image argument can be provided like so:
backlight up 10 ~/.icons/my-brightness-icon.svg
If no image is provided it defaults to the first element containing the name "brightness.svg" enumerating /usr/share/icons/
folder
To install this script simply clone this repo and run make:
git clone https://github.com/mamaraddio/nvidia-backlight
cd nvidia-backlight
sudo make install
A clean
recipe is provided with the Makefile
. To uninstall you can run
sudo make clean