Skip to content

Instantly share code, notes, and snippets.

@yfe404
Created July 10, 2019 20:07
Show Gist options
  • Save yfe404/44cbfd96e5dd5458dd78cb0cf481548c to your computer and use it in GitHub Desktop.
Save yfe404/44cbfd96e5dd5458dd78cb0cf481548c to your computer and use it in GitHub Desktop.
Increase screen brightness using xrandr
#!/bin/bash
b=$(xrandr --current --verbose | grep -i bright | cut -d':' -f 2)
b=$((b + 0.1))
xrandr --output eDP-1 --brightness $b ## adjust the output with yours, you can get it using the commend xrandr (with no args)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment