summaryrefslogtreecommitdiff
path: root/src/etc/sysconfig/disable-powerbutton
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc/sysconfig/disable-powerbutton')
-rw-r--r--src/etc/sysconfig/disable-powerbutton8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/etc/sysconfig/disable-powerbutton b/src/etc/sysconfig/disable-powerbutton
new file mode 100644
index 0000000..34c1fc3
--- /dev/null
+++ b/src/etc/sysconfig/disable-powerbutton
@@ -0,0 +1,8 @@
+# Config file for disable-powerbutton-daemon
+# Running that program is designed to suppress the default behavior of the power button which is to shut down immediately.
+# DP_WHAT Which elogind-inhibit behaviors to control.
+DP_WHAT="shutdown:sleep:idle:handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch"
+# DP_COMMAND which program to run, and when this program ends, the inhibition ends.
+DP_COMMAND="/usr/libexec/stackrpms-acer-chromebook/disable-powerbutton-loop"
+# When this file exists at the end of a sleep loop, the loop ends and therefore the inhibition ends.
+DP_SAFETY_FILE=/tmp/stop-disable-powerbutton
bgstack15