Skip to content

Instantly share code, notes, and snippets.

@mattkasun
Created December 15, 2020 16:10
Show Gist options
  • Save mattkasun/5b52f2c2190797049b150e2f5b8e96f5 to your computer and use it in GitHub Desktop.
Save mattkasun/5b52f2c2190797049b150e2f5b8e96f5 to your computer and use it in GitHub Desktop.
monitor brighness
#get connected monitors
xrandr -q | grep connected
#get brighness -- replace DP-1-2 with monitor name
xrandr --verbose --current |grep ^DP-1-2 -A5 | tail -n1
#set brightness
xrandr --output DP-1-1 --brightness 1.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment