Skip to content

Instantly share code, notes, and snippets.

@jasonwbarnett
Created June 14, 2021 13:41
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 jasonwbarnett/2bc4e0737883a9c6072719dac232b9d3 to your computer and use it in GitHub Desktop.
Save jasonwbarnett/2bc4e0737883a9c6072719dac232b9d3 to your computer and use it in GitHub Desktop.
This maps the command key to control while using RDP
{
"title": "Remote Desktop",
"rules": [
{
"description": "Swap command and control",
"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"
]
}
]
},
{
"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"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "right_control",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_command"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"com\\.microsoft\\.rdc\\.mac"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "right_command",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_control"
}
],
"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