Skip to content

Instantly share code, notes, and snippets.

@rinsuki
Created September 21, 2020 04:12
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 rinsuki/d0f216ffbb59e372e5f9b900304d581c to your computer and use it in GitHub Desktop.
Save rinsuki/d0f216ffbb59e372e5f9b900304d581c to your computer and use it in GitHub Desktop.
{
"title": "Swap Left Command and Left Ctrl in TeamViewer",
"rules": [
{
"description": "Swap Left Command and Left Ctrl in TeamViewer",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_gui"
},
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.teamviewer\\.TeamViewer$"
]
}
],
"to": [
{
"key_code": "left_control"
}
]
},
{
"type": "basic",
"from": {
"key_code": "left_control"
},
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.teamviewer\\.TeamViewer$"
]
}
],
"to": [
{
"key_code": "left_gui"
}
]
}
]
},
{
"description": "Swap Ctrl+Tab and Cmd+Tab",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "tab",
"modifiers": {
"mandatory": [
"left_gui"
]
}
},
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.teamviewer\\.TeamViewer$"
]
}
],
"to": [
{
"key_code": "tab",
"modifiers": [
"left_control"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "tab",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.teamviewer\\.TeamViewer$"
]
}
],
"to": [
{
"key_code": "tab",
"modifiers": [
"left_gui"
]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment