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