Skip to content

Instantly share code, notes, and snippets.

@VladSem
Last active November 25, 2015 03:17
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 VladSem/dd8d789d3f64b65c9a76 to your computer and use it in GitHub Desktop.
Save VladSem/dd8d789d3f64b65c9a76 to your computer and use it in GitHub Desktop.
This script help you change the brightness on your laptop (tested on Asus and Intel chipset)
#!/bin/bash
VALUE="$(cat /sys/class/backlight/intel_backlight/brightness)"
echo "Your carrent brightness is: ${VALUE}"
echo "Input your value of brightness: "
read INPUT
echo $INPUT | tee /sys/class/backlight/intel_backlight/brightness
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment