Remap power button/key?
I have an Asus UX305 laptop with a power button that is a key on the keyboard, directly above the <backspace> key where <delete> usually is.
In Windows the power options include a setting to disable the power key, in Ubuntu/Gnome it seems to be automatically mapped to a dialog that opens when the power key is hit, giving option of cancel/restart/logout/shutdown.
When running i3 the key simply triggers a shutdown operation with no opportunity for user to intervene. Since this key is right above <backspace> and it's easy to hit accidentally, I want to disable it in i3 or at least map it so that it displays something like I get in Unity/Gnome, avoiding accidental shutdowns.
I tried using 'xev -event keyboard' (while running Unity) to see if I could see what key binding/mapping is being used. The key doesn't trigger a 'key release' event like other keys that would reveal a keycode/keysym.
Can anybody help with a way to do this? Thanks.