Using Plex HTPC on 21:9 aspect ratio screen

Here is the full json file :

{
  "name": "Generic Keyboard",
  "idmatcher": "Keyboard.*",
  "mapping": {
    "Left": "left",
    "Right": "right",
    "Up": "up",
    "Down": "down",
    "Return|Enter": {
      "short": "enter",
      "long": "menu"
    },
    "Back|Esc|Backspace": {
      "short": "back",
      "long": "home"
    },

    // Standard text entry. There's no distinction between upper and lower case
    // letters. The optional Shift key is only a flexibility convenience.
    "(?:Shift\\+)?([A-Z0-9.])": "%1",

    // Use Shift+letter to jump to the associated letter in supporting lists.
    "Shift\\+([A-Z])": "jump+%1",

    // Application shortcuts.
    "Space": ["space", "play_pause"],
    "P": "play_pause",
    "Ctrl\\+P": "pause",
    "X": "stop",
    "B": "back",
    "H": "home",
    "M": "menu",
    "A": "cycle_audio",
    "L": "cycle_subtitles",
    "S": "toggle_subtitles",
    "Alt\\+A": "increase_audio_delay",
    "Alt\\+Shift\\+A": "decrease_audio_delay",
    "Alt\\+S": "increase_subtitles_delay",
    "Alt\\+Shift\\+S": "decrease_subtitles_delay",
    "PgUp": ["page_up", "seek_forward"],
    "PgDown": ["page_down", "seek_backward"],
    "Home": "step_backward",
    "End": "step_forward",
    "Ctrl\\+F": "search",
    "\\[": "previous_pivot_tab",
    "\\]": "next_pivot_tab",
    "=": "increase_volume",
    "(Shift\\+)?\\+": "increase_volume",
    "\\-": "decrease_volume",
    "I": "info",
    "W": "toggle_watched",
    "Z": "cycle_aspect_ratio",
    "Ctrl\\+Shift\\+D": "debug",

    // Application window handling.
    "Alt\\+(Return|Enter)": "toggle_fullscreen",
    "F11": "toggle_fullscreen",
    "\\\\": "toggle_fullscreen",
    "E": "exit",

    // The `|<< <<` and `>> >>|` button on a Harmony Hub remote sends different
    // keys based on the Harmony device configuration. A long press action to
    // send `skip_previous` or `skip_next` must be configured in the Harmony
    // app. The default configuration sends no keyboard events to Plex.
    //
    // - "Media Rewind" and "Media Fast Forward" are sent when the device is
    //   configured as a Windows computer.
    // - "R" and "F" are sent when the device is configured as a Microsoft Plex
    //   entertainment device..
    "(Media Fast Forward)|F": "seek_forward",
    "(Media Rewind)|R": "seek_backward",

    // These keys appear to be sent by MCE remotes.
    "(Media Play)":"play",
    "(Media Pause)":"pause",
	
	//zoom controls
	"Ctrl\\+\\+" : "mpv:add video-zoom 0.05;show-text \"ZOOM ${video-zoom}\"",
	"Ctrl\\+\\-" : "mpv:add video-zoom -0.05;show-text \"ZOOM ${video-zoom}\"",
	"Ctrl\\+\\*" : "mpv:cycle-values video-zoom 0 0.0574502 0.4025857 0.4269356;show-text \"ZOOM ${video-zoom}\"",
	"Ctrl\\+0" : "mpv:set video-zoom 0;show-text \"ZOOM ${video-zoom}\"",
	
  }
}
1 Like