It's the first thing i did on my pbp (archlinux)
HandlePowerKey=ignore in logind.conf, and then i mapped it in sway.conf to a script that check the state of the screen, if it is on it turn it off, and if it off it turn it on.
This behaviour is persistent even after reboot.
HandlePowerKey=ignore in logind.conf, and then i mapped it in sway.conf to a script that check the state of the screen, if it is on it turn it off, and if it off it turn it on.
This behaviour is persistent even after reboot.