You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

30 lines
440 B

  1. #!/usr/bin/env bash
  2. init() {
  3. /usr/bin/asusctl profile -p | cut -d' ' -f4 > /tmp/pre-gamerun.state
  4. /usr/bin/asusctl profile -P Performance
  5. #notify-send "`asusctl profile -p`"
  6. }
  7. deinit() {
  8. /usr/bin/asusctl profile -P `echo /tmp/pre-gamerun.state`
  9. rm /tmp/pre-gaemrun.state
  10. #notify-send "`asusctl profile -p`"
  11. }
  12. usage() {
  13. echo "Usage: ${0} [start|stop]"
  14. }
  15. case ${1} in
  16. start)
  17. init
  18. ;;
  19. stop)
  20. deinit
  21. ;;
  22. *)
  23. usage
  24. ;;
  25. esac