Created
November 4, 2014 19:29
-
-
Save jarun/9213d0f37908e9001930 to your computer and use it in GitHub Desktop.
brightness control
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
------------ | |
/usr/bin/br+ | |
------------ | |
#!/bin/bash | |
curval=`cat /sys/class/backlight/intel_backlight/brightness` | |
if [ $curval -ge 700 ]; then | |
echo already max | |
else | |
`echo $(expr $curval + 50) | sudo tee /sys/class/backlight/intel_backlight/brightness` | |
fi | |
------------ | |
/usr/bin/br- | |
------------ | |
#!/bin/bash | |
curval=`cat /sys/class/backlight/intel_backlight/brightness` | |
if [ $curval -le 100 ]; then | |
echo already min | |
else | |
`echo $(expr $curval - 50) | sudo tee /sys/class/backlight/intel_backlight/brightness` | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment