Advertisement
Guest User

Untitled

a guest
Dec 18th, 2021
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [[ $1 -gt 96000 ]]; then
  4. brt_val=96000
  5. else
  6. brt_val=$1
  7. fi
  8.  
  9. if [[ $brt_val -gt 0 ]]; then
  10. echo $brt_val | sudo tee /sys/class/backlight/intel_backlight/brightness
  11. else
  12. echo 1 | sudo tee /sys/class/backlight/intel_backlight/brightness
  13. fi
  14. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement