fade 235 B

123456789101112131415161718
  1. #!/bin/sh
  2. hostname=`hostname`
  3. count=200
  4. if [[ $hostname = 'titan' ]]
  5. then
  6. count=50
  7. fi
  8. for i in $(seq $count); do
  9. case $1 in
  10. 'up')
  11. brightnessctl s +3
  12. ;;
  13. 'down')
  14. brightnessctl s 3-
  15. ;;
  16. esac
  17. done