Created
July 10, 2019 20:08
-
-
Save yfe404/dc1c591ed3adaa0b5cd8871e98842d24 to your computer and use it in GitHub Desktop.
Decrease screen brightness using xrandr
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 | |
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