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