Skip to content

Instantly share code, notes, and snippets.

@yfe404
Created July 10, 2019 20:08
Show Gist options
  • Save yfe404/dc1c591ed3adaa0b5cd8871e98842d24 to your computer and use it in GitHub Desktop.
Save yfe404/dc1c591ed3adaa0b5cd8871e98842d24 to your computer and use it in GitHub Desktop.
Decrease 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