- Save file to
~/.config/karabiner/assets/complex_modifications/custom-capslock.json
- In GUI, add rule under complex modifications
- Change
to_if_alone_timeout_milliseconds
from 1000 to 500 ms
Forked from justinmklam/karabiner-custom-capslock.json
Created
February 24, 2023 20:37
-
-
Save juanpprieto/baa318c0a78fcae9e2bda3b0d4d6702f to your computer and use it in GitHub Desktop.
Map caps lock to esc (if tapped) or control (if held down or combined with another key). Use with Karabiner Elements on MacOS
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": "Change caps_lock to Esc and Control", | |
"rules": [ | |
{ | |
"description": "Post Esc if Caps is tapped, Control if held.", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "caps_lock", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_control", | |
"lazy": true | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "escape" | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment