brightup.sh (305B)
1 #!/bin/bash 2 3 brightness_file=/sys/class/backlight/intel_backlight/brightness 4 brightness=$(< $brightness_file) 5 6 if [ $((brightness < 187)) '=' 1 ] 7 then 8 brightness=$((brightness + 10)) 9 10 if [ $((brightness > 187)) '=' 1 ] 11 then 12 brightness=187 13 fi 14 echo -n $brightness > $brightness_file 15 fi