Forked from toonetown/karabiner-elements-remote-desktop.json
Last active
April 4, 2021 08:37
-
-
Save gregflint/01f212ccb21cedb23b7fbb2ff1aa9e66 to your computer and use it in GitHub Desktop.
Karabiner Elements JSON configuration for Microsoft Remote Desktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Microsoft Remote Desktop", | |
"rules": [ | |
{ | |
"description": "Windows Mappings", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { "key_code": "tab", "modifiers": { "mandatory": [ "left_command" ] } }, | |
"to": [ { "key_code": "tab", "modifiers": [ "left_option" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "tab", "modifiers": { "mandatory": [ "left_command", "left_shift" ] } }, | |
"to": [ { "key_code": "tab", "modifiers": [ "left_option", "left_shift" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "x", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "x", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "c", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "c", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "v", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "v", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "a", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "a", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "z", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "z", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "s", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "s", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "p", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "p", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "f", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "f", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "b", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "b", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "i", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "i", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "u", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "u", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "n", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "n", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "t", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "t", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "comma", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "comma", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "k", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "k", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "l", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "l", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "g", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "g", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "period", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "period", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "open_bracket", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "open_bracket", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "close_bracket", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "close_bracket", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "slash", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "slash", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "k", "modifiers": { "mandatory": [ "command", "shift" ] } }, | |
"to": [ { "key_code": "k", "modifiers": [ "left_control", "left_shift" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "z", "modifiers": { "mandatory": [ "command", "shift" ] } }, | |
"to": [ { "key_code": "z", "modifiers": [ "left_control", "left_shift" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "g", "modifiers": { "mandatory": [ "command", "shift" ] } }, | |
"to": [ { "key_code": "g", "modifiers": [ "left_control", "left_shift" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "b", "modifiers": { "mandatory": [ "command", "shift" ] } }, | |
"to": [ { "key_code": "b", "modifiers": [ "left_control", "left_shift" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "f", "modifiers": { "mandatory": [ "command", "shift" ] } }, | |
"to": [ { "key_code": "f", "modifiers": [ "left_control", "left_shift" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "r", "modifiers": { "mandatory": [ "command", "shift" ] } }, | |
"to": [ { "key_code": "r", "modifiers": [ "left_control", "left_shift" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "slash", "modifiers": { "mandatory": [ "command", "shift" ] } }, | |
"to": [ { "key_code": "slash", "modifiers": [ "left_control", "left_shift" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "left_arrow", "modifiers": { "mandatory": [ "option" ] } }, | |
"to": [ { "key_code": "left_arrow", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "right_arrow", "modifiers": { "mandatory": [ "option" ] } }, | |
"to": [ { "key_code": "right_arrow", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "left_arrow", "modifiers": { "mandatory": [ "option", "shift" ] } }, | |
"to": [ { "key_code": "left_arrow", "modifiers": [ "left_control", "left_shift" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "right_arrow", "modifiers": { "mandatory": [ "option", "shift" ] } }, | |
"to": [ { "key_code": "right_arrow", "modifiers": [ "left_control", "left_shift" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "left_arrow", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "home", "modifiers": [ ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "right_arrow", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "end", "modifiers": [ ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "left_arrow", "modifiers": { "mandatory": [ "command", "shift" ] } }, | |
"to": [ { "key_code": "home", "modifiers": [ "left_shift" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "right_arrow", "modifiers": { "mandatory": [ "command", "shift" ] } }, | |
"to": [ { "key_code": "end", "modifiers": [ "left_shift" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "up_arrow", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "up_arrow", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "down_arrow", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "down_arrow", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "up_arrow", "modifiers": { "mandatory": [ "command", "shift" ] } }, | |
"to": [ { "key_code": "up_arrow", "modifiers": [ "left_control", "left_shift" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "down_arrow", "modifiers": { "mandatory": [ "command", "shift" ] } }, | |
"to": [ { "key_code": "down_arrow", "modifiers": [ "left_control", "shift" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "q", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "f4", "modifiers": [ "fn", "left_option" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "w", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "f4", "modifiers": [ "fn", "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "r", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "f5", "modifiers": [ "fn" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "comma", "modifiers": { "mandatory": [ "command", "option" ] } }, | |
"to": [ { "key_code": "comma", "modifiers": [ "left_command" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "c", "modifiers": { "mandatory": [ "command", "option" ] } }, | |
"to": [ { "key_code": "c", "modifiers": [ "left_command" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "q", "modifiers": { "mandatory": [ "command", "option" ] } }, | |
"to": [ { "key_code": "q", "modifiers": [ "left_command" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "h", "modifiers": { "mandatory": [ "command", "option" ] } }, | |
"to": [ { "key_code": "h", "modifiers": [ "left_command" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "z", "modifiers": { "mandatory": [ "command", "option" ] } }, | |
"to": [ { "key_code": "z", "modifiers": [ "left_command" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "w", "modifiers": { "mandatory": [ "command", "option" ] } }, | |
"to": [ { "key_code": "w", "modifiers": [ "left_control", "left_option" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "d", "modifiers": { "mandatory": [ "command" ] } }, | |
"to": [ { "key_code": "d", "modifiers": [ "left_control" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "d", "modifiers": { "mandatory": [ "command", "shift" ] } }, | |
"to": [ { "key_code": "d", "modifiers": [ "left_control", "left_shift" ] } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.mac" ] } ] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment