Forked from gxfxyz/karabiner_capslock_control_tab.json
Last active
March 4, 2022 13:02
-
-
Save jackytang/7964eebeb1483973300f5a6aae4952b7 to your computer and use it in GitHub Desktop.
Karabiner-Elements config: CapsLock / Control / Tab karabiner://karabiner/assets/complex_modifications/import?url=https://gist.githubusercontent.com/jackytang/7964eebeb1483973300f5a6aae4952b7/raw/a9d1912cdb92d820fd001416db12ce4377a60d33/karabiner_capslock_control_tab.json
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": "CapsLock / Control / Tab", | |
"rules": [ | |
{ | |
"description": "Tap CapsLock (⇪) → Control (⌃); Hold CapsLock (⇪) → Control (⌃)", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "caps_lock", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_control", | |
"lazy": true | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "left_control" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"key_code": "left_control" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Tap Control_L (⌃) → Control_L (⌃); 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": "left_control" | |
} | |
], | |
"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_command", | |
"lazy": true, | |
"modifiers": [ | |
"left_control", | |
"left_option" | |
] | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "tab" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"key_code": "left_command", | |
"modifiers": [ | |
"left_control", | |
"left_option" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment