Skip to content

Latest commit

 

History

History
44 lines (37 loc) · 1.19 KB

README.md

File metadata and controls

44 lines (37 loc) · 1.19 KB

nvidia-backlight

A simple script to help manage brightness of NVIDIA cards that have strange "brightness steps"

Dependencies

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

Usage

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

Installation

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

Uninstall

A clean recipe is provided with the Makefile. To uninstall you can run

sudo make clean