Edit LIRC config files?

I’m using an Xbox One media remote and I want to edit the power button keymap to bring up the shutdown menu rather than immediately shutting down. How can I make the config file writable? I also think remote with power buttons should bring up the menu by default unless there is a way to also power a Pi with the remote.

I did the same thing using an Xbox 360 remote. Details on changing remote.xml are here:

What you ask cannot be done by editing the lircd.conf file, as there is no KEY_ code that is mapped to bring up the shutdown menu.

You would need to create a custom remote.xml in /home/osmc/.kodi/userdata/ that changed the function of KEY_POWER.