Last active
May 8, 2022 10:25
-
-
Save Azer5C74/264a178719afe83acfa2204120550f4f to your computer and use it in GitHub Desktop.
Adjusting screen brightness on Linux Mint Mate
This file contains hidden or 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 --verbose | awk '/Brightness/ { print $2; exit }') | |
A=0.2 | |
C=$(echo "$B - $A" | bc) | |
M=$(xrandr | grep " connected" | cut -f1 -d " ") | |
xrandr --output $M --brightness $C |
This file contains hidden or 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 --verbose | awk '/Brightness/ { print $2; exit }') | |
A=0.2 | |
C=$(echo "$B + $A" | bc) | |
M=$(xrandr | grep " connected" | cut -f1 -d " ") | |
xrandr --output $M --brightness $C |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment