Assign remote button to Xrandr command

  • Hi everyone.

    So i recently moved from a full linux mint system to libreelec trying to search for the smoothest video possible.

    Overall i'm happy with the change.. but i'm suffering from the typical limitations of going from a full os to a limited one.
    One of them is i can't find an easy way to change between my two screens ( a tv and a projector) .. there is no key bind in kodi for that purpose.
    I was usually using xrandr commands through ssh, which i could attach to remote buttons using linux mint Desktop utility, but well... since there is no desktop in Libreelec i'm not sure if i can do this anymore.

    Simple question is.. if there is any possibility to attach ssh commands to a remote button modifying any .xml file or similar through ssh?
    Or if there is any other way?

    Thanks in advance