pm-hook.sh.template 205 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. razer_suspend()
  3. {
  4. true # Do nothing
  5. }
  6. razer_resume()
  7. {
  8. @CMAKE_INSTALL_PREFIX@/bin/razercfg -B -K
  9. }
  10. case $1 in
  11. hibernate|suspend)
  12. razer_suspend
  13. ;;
  14. resume|thaw)
  15. razer_resume
  16. ;;
  17. esac