Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [[ $1 -gt 96000 ]]; then
- brt_val=96000
- else
- brt_val=$1
- fi
- if [[ $brt_val -gt 0 ]]; then
- echo $brt_val | sudo tee /sys/class/backlight/intel_backlight/brightness
- else
- echo 1 | sudo tee /sys/class/backlight/intel_backlight/brightness
- fi
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement