Disabling the power button poweroff action and adding an alternative listener

Hi!, I need to add a custom power button
action on my fedora everything minimal installation,
but the power button is already tied to powering off
the computer. How do i disable the action and add a
custom one?

bump.

If Weston isn’t on it’s the same

1 Like

Turns out I didn’t add he [Login] header in logind’s config.

Is there a way to change the long press power button delay in systemd logind?

Added systemd, weston

No. [More characters to appease discourse.]