Last active
June 1, 2024 21:23
-
-
Save chrisfcarroll/d32bc8b50857572b8f67601628194549 to your computer and use it in GitHub Desktop.
Karabiner for Windows on Mac | The main Windows Ctrl-keystroke -> Cmd-keystroke mappings | Home/End → Ctrl-A/Ctrl-E | and similar.
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
{ | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"parameters": { /* ... etc ... */ }, | |
"README": "********************************************************************************************************", | |
"README": "*" COPY JUST THE ELEMENTS OF THIS "rules" array into your profiles.complex_modifications.rules array. "*", | |
"README": "********************************************************************************************************", | |
, | |
"rules": [ | |
{ | |
"description": "Alt-Tab is Option-Tab is Command-Tab", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com.apple.safari", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "tab", | |
"modifiers": { | |
"mandatory": [ | |
"left_option" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "tab", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Apple Keyboard Unconfuse `~§±", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
}, | |
{ | |
"identifiers": [ | |
{ | |
"description": "Apple Keyboard UK", | |
"product_id": 545, | |
"vendor_id": 1452 | |
} | |
], | |
"type": "device_if" | |
} | |
], | |
"from": { | |
"key_code": "non_us_backslash", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "grave_accent_and_tilde" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
}, | |
{ | |
"identifiers": [ | |
{ | |
"description": "Apple Keyboard UK", | |
"product_id": 545, | |
"vendor_id": 1452 | |
} | |
], | |
"type": "device_if" | |
} | |
], | |
"from": { | |
"key_code": "grave_accent_and_tilde", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "non_us_backslash" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Insert (Ctrl) | Only for Terminal Emulators, VMs, RDC, XQuartz", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_if" | |
} | |
], | |
"from": { | |
"key_code": "insert", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "c", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Insert (Ctrl)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "insert", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "c", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Insert (Shift) [+Terminal Emulators]", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "insert", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "v", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Insert (Shift)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "insert", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "v", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Home to ⌘-Left", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "home" | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Home (Cmd) to ⌘-Up", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "home", | |
"modifiers": { | |
"mandatory": [ | |
"command" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "up_arrow", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Home (Shift) to ⌘-Shift-Left", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "home", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow", | |
"modifiers": [ | |
"command", | |
"shift" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Home (Ctrl+Shift) to ⌘-Shift-Up", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "home", | |
"modifiers": { | |
"mandatory": [ | |
"control", | |
"shift" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "up_arrow", | |
"modifiers": [ | |
"command", | |
"shift" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "End to ⌘-Right", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "end" | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "End (Cmd) to ⌘-Down", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "end", | |
"modifiers": { | |
"mandatory": [ | |
"command" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "down_arrow", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "End (Shift) to ⌘-Shift-Down", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "end", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow", | |
"modifiers": [ | |
"command", | |
"shift" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "End (Ctrl+Shift) to ⌘-Shift-Down", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "end", | |
"modifiers": { | |
"mandatory": [ | |
"control", | |
"shift" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "down_arrow", | |
"modifiers": [ | |
"command", | |
"shift" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Backspace (Ctrl)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "delete_or_backspace", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "delete_or_backspace", | |
"modifiers": [ | |
"option" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Delete (Ctrl)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "delete_forward", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "delete_forward", | |
"modifiers": [ | |
"option" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Right Win", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "right_gui" | |
}, | |
"to": [ | |
{ | |
"key_code": "right_gui", | |
"lazy": true | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "launchpad" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "A (Ctrl) to Home | Only for Microsoft Outlook & Word", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.microsoft\\.Word$", | |
"^com\\.microsoft\\.Outlook$" | |
], | |
"type": "frontmost_application_if" | |
} | |
], | |
"from": { | |
"key_code": "a", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "home", | |
"modifiers": [] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "B (Ctrl)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "b", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "b", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "C (Ctrl)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "c", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "c", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "C (Ctrl+Shift) | Only for Terminal and iTerm", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$" | |
], | |
"type": "frontmost_application_if" | |
} | |
], | |
"from": { | |
"key_code": "c", | |
"modifiers": { | |
"mandatory": [ | |
"control", | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "c", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "E (Ctrl) to End | Only for Microsoft Outlook & Word", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.microsoft\\.Word$", | |
"^com\\.microsoft\\.Outlook$" | |
], | |
"type": "frontmost_application_if" | |
} | |
], | |
"from": { | |
"key_code": "e", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "end", | |
"modifiers": [] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "F (Ctrl)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "f", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "f", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "I (Ctrl)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "i", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "i", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "N (Ctrl)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "n", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "n", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "O (Ctrl)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "o", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "o", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "P (Ctrl)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "p", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "p", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "R (Ctrl)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "r", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "r", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "S (Ctrl)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "s", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "s", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "T (Ctrl)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "t", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "t", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "V (Ctrl)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "v", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "v", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "V (Ctrl+Shift) | Only for Terminal and iTerm", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$" | |
], | |
"type": "frontmost_application_if" | |
} | |
], | |
"from": { | |
"key_code": "v", | |
"modifiers": { | |
"mandatory": [ | |
"control", | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "v", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "W (Ctrl)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "w", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "w", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "X (Ctrl)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "x", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "x", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Y (Ctrl)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "y", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "y", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Z (Ctrl)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyper$", | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "z", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "z", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "/ (Ctrl)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^org\\.virtualbox\\.app\\.VirtualBoxVM$", | |
"^org.macosforge.xquartz.X11&", | |
"^com\\.parallels\\.desktop\\.console", | |
"^com\\.microsoft\\.rdc\\.macos$", | |
"^com.wolfram.Mathematica$" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "slash", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
], | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "slash", | |
"modifiers": [ | |
"command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
} | |
], | |
"README": "******************************************************************************************************", | |
"README": "******************************************************************************************************", | |
/* ... etc ... */ | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Edit your
karabiner.json
file carefully at~/.config/karabiner/karabiner.json
Add these rules to your complex modifications section of your selected profile.
Get Karabiner-Elements from pqrs.org/osx/karabiner/ or see the source at github.com/tekezo/Karabiner-Elements