Skip to content

Instantly share code, notes, and snippets.

@Oleksiy-Yakovenko
Last active August 21, 2017 13:48
Show Gist options
  • Save Oleksiy-Yakovenko/89aaadde6c1be6344475ce2a1a7c601e to your computer and use it in GitHub Desktop.
Save Oleksiy-Yakovenko/89aaadde6c1be6344475ce2a1a7c601e to your computer and use it in GitHub Desktop.
Swap option and command, map fn->ins in MS Remote Desktop
# add to profiles -> complex_modifications
# in the file ~/.config/karabiner/karabiner.json
"profiles": [
{
"complex_modifications": {
"parameters": {
"basic.to_if_alone_timeout_milliseconds": 1000
},
"rules": [
{
"description": "Swap option and command, map fn->ins in MS Remote Desktop",
"manipulators": [
{
"conditions": [
{
"bundle_identifiers": [
"^com\\.microsoft\\.rdc\\..*"
],
"type": "frontmost_application_if"
}
],
"from": {
"key_code": "left_option",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_command"
}
],
"type": "basic"
},
{
"conditions": [
{
"bundle_identifiers": [
"^com\\.microsoft\\.rdc\\..*"
],
"type": "frontmost_application_if"
}
],
"from": {
"key_code": "left_command",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_option"
}
],
"type": "basic"
},
{
"conditions": [
{
"bundle_identifiers": [
"^com\\.microsoft\\.rdc\\..*"
],
"type": "frontmost_application_if"
}
],
"from": {
"key_code": "right_option",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_command"
}
],
"type": "basic"
},
{
"conditions": [
{
"bundle_identifiers": [
"^com\\.microsoft\\.rdc\\..*"
],
"type": "frontmost_application_if"
}
],
"from": {
"key_code": "right_command",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_option"
}
],
"type": "basic"
},
{
"conditions": [
{
"bundle_identifiers": [
"^com\\.microsoft\\.rdc\\..*"
],
"type": "frontmost_application_if"
}
],
"from": {
"key_code": "fn",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "insert"
}
],
"type": "basic"
}
]
}
]
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment