Where is the list of all available input mapping actions for json files

I have successed in my Rasperry 3B+.

  1. cec.json file as follow:

{
“name”: “HDMI CEC”,
“idmatcher”: “CEC.*”,
“mapping”:
{
“KEY_LEFT”: “left”,
“KEY_RIGHT”: “right”,
“KEY_UP”: “up”,
“KEY_DOWN”: “down”,
“KEY_MENU”: “unknown”,
“KEY_SELECT”: “enter”,
“KEY_BACK”: “back”,
“KEY_RED”: “increase_volume”,
“KEY_GREEN”: “decrease_volume”,
“KEY_YELLOW”: “host:script /storage/.local/share/plexmediaplayer/scripts/storage/.local/share/plexmediaplayer/scripts/cec-yellow-toggle.sh”,
“KEY_BLUE”: “blue”,
“KEY_PLAY”: “play”,
“KEY_STOP”: “stop”,
“KEY_PAUSE”: “pause”,
“KEY_SEEKFWD”: “seek_forward”,
“KEY_SEEKBCK”: “seek_backward”,
“KEY_SUBTITLES”: “cycle_subtitles”,
“KEY_INFO”: “unknown”,
“KEY_NEXT”: “step_forward”,
“KEY_PREV”: “step_backward”,
“KEY_HOME”: “home”,
“KEY_NUMERIC_([0-9])”: “%1”,
“KEY_GUIDE”: “guide”
}

and 2. script file cec-yellow-toggle.sh is
#!/bin/sh
echo /bin/date " : cec toggle yellow." >> /tmp/yellow.log
#/sbin/shutdown -r now

1 Like