/acpi/events/powerbtn

http://github.com/brinkman83/bashrc · #! · 13 lines · 10 code · 3 blank · 0 comment · 0 complexity · 57f021ab2369f211018d6e7d11434314 MD5 · raw file

  1. # /etc/acpi/events/powerbtn
  2. # This is called when the user presses the power button and calls
  3. # /etc/acpi/powerbtn.sh for further processing.
  4. # Optionally you can specify the placeholder %e. It will pass
  5. # through the whole kernel event message to the program you've
  6. # specified.
  7. # We need to react on "button power.*" and "button/power.*" because
  8. # of kernel changes.
  9. event=button[ /]power
  10. action=/etc/acpi/powerbtn.sh