Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- bldb='/sys/class/backlight/intel_backlight/brightness'
- step=113
- current=`cat $bldb`
- new=$current
- if [ "$1" == "up" ];then
- new=$(($current + $step))
- elif [ "$1" == "down" ];then
- new=$(($current - $step))
- fi
- if [ $new -le 0 ];then
- new=0
- fi
- echo $new > $bldb
- current=`cat $bldb`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement