Skip to content

Instantly share code, notes, and snippets.

@peterforgacs
Last active January 29, 2017 13:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save peterforgacs/fa91a59590e190ac04dcdbf24b45434f to your computer and use it in GitHub Desktop.
Controlling screen brigthness with ubuntu
xrandr --current --verbose | grep -i "Brightness:*" | grep -io -m 1 [[:digit:]].[[:digit:]]
#!/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