Skip to content

Instantly share code, notes, and snippets.

@andycmaj
Forked from DennyWeinberg/rdp.json
Created November 6, 2021 19:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andycmaj/b61e9f201016cb5134dd77f722792656 to your computer and use it in GitHub Desktop.
Save andycmaj/b61e9f201016cb5134dd77f722792656 to your computer and use it in GitHub Desktop.
Karabiner Elements JSON configuration for Microsoft Remote Desktop
{
"title": "Microsoft Remote Desktop",
"rules": [
{
"description": "Windows Mappings",
"manipulators": [
{
"type": "basic", "description": "Completely disabled the windows key (Startmenu)",
"from": { "key_code": "left_command" },
"to": [ { "key_code": "left_control" } ],
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.macos" ] } ]
},
{
"type": "basic", "description": "All command are mapped to CTRL",
"from": { "any": "key_code", "modifiers": { "mandatory": [ "left_command" ] } },
"to": [ { "any": "key_code", "modifiers": [ "left_control" ] } ],
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.macos" ] } ]
},
{
"type": "basic", "description": "Command Q is Alt F4",
"from": { "key_code": "q", "modifiers": { "mandatory": [ "left_control" ] } },
"to": [ { "key_code": "f4", "modifiers": [ "fn", "left_option" ] } ],
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.macos" ] } ]
},
{
"type": "basic", "description": "Command+Tab is Windows+Tab",
"from": {"key_code": "tab", "modifiers": {"mandatory": ["left_control"]}},
"to": [{"key_code": "tab", "modifiers": ["option"]}],
"conditions": [
{"type": "frontmost_application_if", "bundle_identifiers": ["com\\.microsoft\\.rdc\\.macos"]}
]
},
{
"type": "basic", "description": "Command+m is Windows+m",
"from": {"key_code": "m", "modifiers": {"mandatory": ["left_control"]}},
"to": [{"key_code": "down_arrow", "modifiers": ["left_gui"]}],
"conditions": [
{"type": "frontmost_application_if", "bundle_identifiers": ["com\\.microsoft\\.rdc\\.macos"]}
]
},
{
"type": "basic", "description": "Option i is Alt Ins",
"from": { "key_code": "i", "modifiers": { "mandatory": [ "option" ] } },
"to": [ { "key_code": "insert", "modifiers": [ "option" ] } ],
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.macos" ] } ]
},
{
"type": "basic", "description": "Option d is Alt Entf",
"from": { "key_code": "d", "modifiers": { "mandatory": [ "option" ] } },
"to": [ { "key_code": "delete_forward", "modifiers": [ "option" ] } ],
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "com\\.microsoft\\.rdc\\.macos" ] } ]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment