Skip to content

Instantly share code, notes, and snippets.

@teocomi
Last active July 23, 2020 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teocomi/082cf7e0be74fb16747b490d25c00d96 to your computer and use it in GitHub Desktop.
Save teocomi/082cf7e0be74fb16747b490d25c00d96 to your computer and use it in GitHub Desktop.
Karabiner Elements JSON configuration for Microsoft Remote Desktop
{
"title": "Remote Desktop & TeamViewer",
"rules": [
{
"description": "Swap command and control - teocomi",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_control",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_command"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"com\\.microsoft\\.rdc\\.mac", "com\\.teamviewer\\.TeamViewer", "com\\.microsoft\\.rdc\\.osx\\.beta"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "left_command",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"com\\.microsoft\\.rdc\\.mac", "com\\.teamviewer\\.TeamViewer", "com\\.microsoft\\.rdc\\.osx\\.beta"
]
}
]
}
]
}
]
}
@teocomi
Copy link
Author

teocomi commented Apr 29, 2020

Import with open "karabiner://karabiner/assets/complex_modifications/import?url=https%3A%2F%2Fgist.githubusercontent.com%2Fteocomi%2F082cf7e0be74fb16747b490d25c00d96%2Fraw%2Fkarabiner-elements-remote-desktop.json"

Works with Remote Desktop and Remote Desktop Beta.

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