Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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" ] } ]
}
]
}
]
}
@DennyWeinberg

This comment has been minimized.

Copy link
Owner Author

@DennyWeinberg DennyWeinberg commented Oct 21, 2021

open "karabiner://karabiner/assets/complex_modifications/import?url=https://gist.githubusercontent.com/DennyWeinberg/d1649c16d1633a535f28ed57489f4da4/raw/f15290c9f1eb3d879846ab44b2723c03cf3391a8/karabiner-elements-remote-desktop.json"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment