-
-
Save mabutou/d9c512b88b2f36be803d6ef71e4777db to your computer and use it in GitHub Desktop.
Karabiner-Elements config: CapsLock / Control / Tab
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
{ | |
"title": "CapsLock / Control / Tab", | |
"rules": [ | |
{ | |
"description": "Tap CapsLock (⇪) → Escape (⎋); Hold CapsLock (⇪) → Control (⌃)", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "caps_lock", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_control", | |
"lazy": true | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "escape" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"key_code": "left_control" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Tap Control_L (⌃) → CapsLock (⇪); Hold Control_L (⌃) → Super Key (⌃⌥⌘)", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "left_control", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_command", | |
"lazy": true, | |
"modifiers": [ | |
"left_control", | |
"left_option" | |
] | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"hold_down_milliseconds": 100, | |
"key_code": "caps_lock" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"key_code": "left_command", | |
"modifiers": [ | |
"left_control", | |
"left_option" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Hold Tab (⇥) → Hyper Key (⇧⌃⌥⌘)", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "tab", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_shift", | |
"lazy": true, | |
"modifiers": [ | |
"left_command", | |
"left_control", | |
"left_option" | |
] | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "tab" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"key_code": "left_shift", | |
"modifiers": [ | |
"left_command", | |
"left_control", | |
"left_option" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment