Last active
April 16, 2018 11:22
-
-
Save laapsaap/7c7fcb75baa9e55802f8bdb91e5d7253 to your computer and use it in GitHub Desktop.
Windows/Linux style Karabiner Elements Complex Modifications
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Windows/Linux Style", | |
"rules": [ | |
{ | |
"description": "Option+Tab to Command+Tab", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "tab", | |
"modifiers": { | |
"mandatory": [ | |
"left_option" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "tab", | |
"modifiers": "command" | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "tab", | |
"modifiers": { | |
"mandatory": [ | |
"right_option" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "tab", | |
"modifiers": "command" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Shift-f13 to Command+v to mimic shift insert on apple keyboard", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "f13", | |
"modifiers": { | |
"mandatory": [ | |
"left_shift" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "v", | |
"modifiers": "command" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"^com\\.vmware\\.fusion$" | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "F13 to Insert in VMware Fusion to make Insert available", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "f13", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "insert" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": [ | |
"^com\\.vmware\\.fusion$" | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "F12 to Insert in VMware Fusion to make Insert available", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "f12", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "insert" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": [ | |
"^com\\.vmware\\.fusion$" | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Ctrl-x to Command-x", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "x", | |
"modifiers": { | |
"mandatory": [ | |
"left_control" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "x", | |
"modifiers": "command" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$" | |
] | |
}, | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"^com\\.googlecode\\.iterm2$" | |
] | |
}, | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"^com\\.vmware\\.fusion$" | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Ctrl-f to Command-f", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "f", | |
"modifiers": { | |
"mandatory": [ | |
"left_control" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "f", | |
"modifiers": "command" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$" | |
] | |
}, | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"^com\\.googlecode\\.iterm2$" | |
] | |
}, | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"^com\\.vmware\\.fusion$" | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Ctrl-z to Command-z", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "z", | |
"modifiers": { | |
"mandatory": [ | |
"left_control" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "z", | |
"modifiers": "command" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$" | |
] | |
}, | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"^com\\.googlecode\\.iterm2$" | |
] | |
}, | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"^com\\.vmware\\.fusion$" | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Ctrl-a to Command-a", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "a", | |
"modifiers": { | |
"mandatory": [ | |
"left_control" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "a", | |
"modifiers": "command" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$" | |
] | |
}, | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"^com\\.googlecode\\.iterm2$" | |
] | |
}, | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"^com\\.vmware\\.fusion$" | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Ctrl-c to Command-c", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "c", | |
"modifiers": { | |
"mandatory": [ | |
"left_control" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "c", | |
"modifiers": "command" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$" | |
] | |
}, | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"^com\\.googlecode\\.iterm2$" | |
] | |
}, | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"^com\\.vmware\\.fusion$" | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Ctrl-v to Command-v", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "v", | |
"modifiers": { | |
"mandatory": [ | |
"left_control" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "v", | |
"modifiers": "command" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$" | |
] | |
}, | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"^com\\.googlecode\\.iterm2$" | |
] | |
}, | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"^com\\.vmware\\.fusion$" | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment