Created
April 22, 2022 04:51
-
-
Save anujonthemove/63e801b5c9c38b2fc6010c1d6e2ed21f to your computer and use it in GitHub Desktop.
Ubuntu - change brightness via command line
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
echo "Enter brightness percentage: " | |
read x | |
xrandr --output eDP-1 --brightness ${x} | |
echo "Brightness has been changed to ${x}" | |
echo "Exiting..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment