Remap LG magic remote's red, green, yellow and blue buttons to have ContextMenu available in Kodi
Download the file and store it as /storage/.kodi/userdata/keymaps/remote.xml
Login into LibreELEC using
$ ssh [email protected]
Then download remote remap config using the following commands:
# cd ~/.kodi/userdata/keymaps
# curl -O https://raw.githubusercontent.com/hardesk/kodi-lg-remote-remaps/master/remote.xml