mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Make power button a drop-in
This commit is contained in:
4
etc/systemd/logind.conf.d/10-ignore-power-button.conf
Normal file
4
etc/systemd/logind.conf.d/10-ignore-power-button.conf
Normal file
@@ -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
|
||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user