Last active
March 23, 2019 02:35
-
-
Save dguo/d0a1e22ee68bdb6e9a794ff6f4adee88 to your computer and use it in GitHub Desktop.
blog - Remap Caps Lock to Escape and Control - caps-lock-karabiner
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
{ | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"rules": [ | |
{ | |
"manipulators": [ | |
{ | |
"description": "Change caps_lock to control when used as modifier, escape when used alone", | |
"from": { | |
"key_code": "caps_lock", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_control" | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "escape", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
} | |
], | |
"type": "basic" | |
} | |
] | |
} | |
] | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment