Skip to content

Instantly share code, notes, and snippets.

@anujonthemove
Created April 22, 2022 04:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anujonthemove/63e801b5c9c38b2fc6010c1d6e2ed21f to your computer and use it in GitHub Desktop.
Save anujonthemove/63e801b5c9c38b2fc6010c1d6e2ed21f to your computer and use it in GitHub Desktop.
Ubuntu - change brightness via command line
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