From 8984affcbecf8544dcaca372b2dc0815273af5c7 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Mon, 10 Nov 2025 17:28:49 -0500 Subject: [PATCH] Make power button a drop-in --- etc/systemd/logind.conf.d/10-ignore-power-button.conf | 4 ++++ install/config/hardware/ignore-power-button.sh | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 etc/systemd/logind.conf.d/10-ignore-power-button.conf delete mode 100644 install/config/hardware/ignore-power-button.sh diff --git a/etc/systemd/logind.conf.d/10-ignore-power-button.conf b/etc/systemd/logind.conf.d/10-ignore-power-button.conf new file mode 100644 index 00000000..71b345b8 --- /dev/null +++ b/etc/systemd/logind.conf.d/10-ignore-power-button.conf @@ -0,0 +1,4 @@ +# Disable shutting system down on power button +# This allows binding the power button to a custom power menu in Hyprland +[Login] +HandlePowerKey=ignore diff --git a/install/config/hardware/ignore-power-button.sh b/install/config/hardware/ignore-power-button.sh deleted file mode 100644 index 8e514f69..00000000 --- a/install/config/hardware/ignore-power-button.sh +++ /dev/null @@ -1,2 +0,0 @@ -# Disable shutting system down on power button to bind it to power menu afterwards -sudo sed -i 's/.*HandlePowerKey=.*/HandlePowerKey=ignore/' /etc/systemd/logind.conf