Last active
January 29, 2017 13:39
Star
You must be signed in to star a gist
Controlling screen brigthness with ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xrandr --current --verbose | grep -i "Brightness:*" | grep -io -m 1 [[:digit:]].[[:digit:]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Setting low brightness at night | |
xrandr --display :0 --output DP-0 --brightness 0.8 --verbose | |
xrandr --display :0 --output HDMI-0 --brightness 0.8 --verbose | |
xrandr --display :0 --output VGA-0 --brightness 0.8 --verbose | |
echo "Set brigthness to 0.8" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment