How does one change the power button shutdown action under say debian 10 systemd to run a custom script instead of shutting down the system?
Back when this was handled by acpi one could edit the scripts in /etc/acpi. The only suggestion I have found thus far is to replace various power related binaries with my script.
Is there a way to do this without replacing binaries?