Created
August 15, 2025 19:23
-
-
Save dainank/9f88a47823ced25f9d843185cc71eb95 to your computer and use it in GitHub Desktop.
Karabiner-Elements: Alt-Tab support and CTRL-Windows key swap.
This file contains hidden or 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
| { | |
| "description": "Windows-like key mapping: Control⇄Command + Alt+Tab cycling", | |
| "manipulators": [ | |
| { | |
| "from": { "key_code": "left_control" }, | |
| "to": [{ "key_code": "left_command" }], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { "key_code": "right_control" }, | |
| "to": [{ "key_code": "right_command" }], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { "key_code": "left_command" }, | |
| "to": [{ "key_code": "left_control" }], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { "key_code": "right_command" }, | |
| "to": [{ "key_code": "right_control" }], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "left_option", | |
| "modifiers": { "optional": ["any"] } | |
| }, | |
| "to": [ | |
| { | |
| "set_variable": { | |
| "name": "option_held", | |
| "value": 1 | |
| } | |
| }, | |
| { | |
| "key_code": "left_command", | |
| "lazy": true | |
| } | |
| ], | |
| "to_after_key_up": [ | |
| { | |
| "set_variable": { | |
| "name": "option_held", | |
| "value": 0 | |
| } | |
| }, | |
| { | |
| "key_code": "left_command", | |
| "lazy": true, | |
| "modifiers": [] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "conditions": [ | |
| { | |
| "name": "option_held", | |
| "type": "variable_if", | |
| "value": 1 | |
| } | |
| ], | |
| "from": { | |
| "key_code": "tab", | |
| "modifiers": { "optional": ["any"] } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "tab", | |
| "modifiers": ["command"] | |
| } | |
| ], | |
| "type": "basic" | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment