Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kbrx93/dc99c7916e45160f91d10481a4a6d865 to your computer and use it in GitHub Desktop.
Save kbrx93/dc99c7916e45160f91d10481a4a6d865 to your computer and use it in GitHub Desktop.
Karabiner-Elements config: CapsLock / Control / Tab
{
"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