Skip to content

Script to incrementally dim or brighten the screen using xrandr (software dimmer)

Notifications You must be signed in to change notification settings

fzzylogic/bash-xrandr-dimmer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

This is a bash script to increase or decrease the brightness of ones screen using xrandr.

I made this because changing the backlight intensity on my laptop wasn't working under Lubuntu 17.04 with kernel 4.10 and because xrandr doesn't allow for incrementally increasing or decreasing the brightness, nor does it allow one to constrain the brightness to useful values, so it's inconvenient to call it using hotkeys.

Note: 'xrandr' changes brightness in software, not hardware.

Brightness is a value between 0 and 1. 0 means completely black.

Examples

$ ./brightness.sh u 0.2     # brightness 'up' by 0.2
$ ./brightness.sh d 0.2     # brightness 'down' by 0.2
$ ./brightness.sh s         # output the current brightness

Amount of brightness adjustment is constrained between 0.01 and 0.2.

A convenient way to use this is to connect it to whatever hotkeys you use for brightness adjustment.

License: MIT

About

Script to incrementally dim or brighten the screen using xrandr (software dimmer)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages