I have a Chromebook on which I installed Arch Linux. However, this Chromebook comes with a very odd key: a Power On/Off key at the top right of the keyboard. Without ANY warning, this button turns off the computer. Naturally, I have been pressing this key when looking for backspace or when my finger slipped while pressing surrounding buttons. As a consequence, I have turned off my computer at very impractical moments. This has to stop. How can I disable or remap this key?
Disable the Power button on a Chromebook
arch linux;keyboard;chrome book
I found your solution on the Arch wiki:Out of the box, systemd-logind will catch power key and lid switch  events and handle them: it will shut down the Chromebook on a power  key press, and a suspend on a lid close. However, this policy might be  a bit harsh given that the power key is an ordinary key at the top  right of the keyboard that might be pressed accidentally.To configure logind to ignore power key presses and lid switches, add  the lines to logind.conf below./etc/systemd/logind.confHandlePowerKey=ignoreHandleLidSwitch=ignoreThen restart logind for the changes to take effect.It looks like you just need to add HandlePowerKey=ignore to /etc/systemd/logind.conf.