Skip to content

A Bash script that can help you change your brightness level by using a custom shortcut.

License

Notifications You must be signed in to change notification settings

hbaklan943/brightness-control-shortcut-xrandr-ubuntu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Brightness control using xrandr configuration utility

A Bash script that can help you change your brightness level by using a custom shortcut.

Dependencies

Install bc if it isn't already. We will need bc to work with decimals since the bash shell ignores the decimal point.

sudo apt-get install bc

Installation and configuring shortcut

  1. Copy the adjustbrightness.sh file to your home directory

  2. Create a custom keyboard shortcut in Ubuntu settings ezgif com-gif-maker (1)

  3. Give it a name and custom shortcut

  4. Finally paste "./adjustbrightness.sh 0.1" and "./adjustbrightness.sh -0.1" to the command section of increase and decrease shortcuts respectively

If you like this, do not forget to give us a Star!

About

A Bash script that can help you change your brightness level by using a custom shortcut.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages