Created
June 15, 2017 00:29
-
-
Save tednaleid/0982b620a022346a34d24a961c5bb517 to your computer and use it in GitHub Desktop.
karabiner 0.91.3 caps lock to ctrl when chorded or esc when pressed alone
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
// modified from http://brettterpstra.com/2017/06/14/full-hyper-key-functionality-restored-in-sierra/ | |
// this makes caps lock turn into "left control" if pressed with another key | |
// and "escape" if pressed by itself. Requires karabiner elements 0.91.3 or higher to have | |
// the "to_if_alone" section. Place after "simple_modifications" in the ~/.config/karabiner/karabiner.json file | |
"complex_modifications": { | |
"rules": [ | |
{ | |
"manipulators": [ | |
{ | |
"description": "Change caps_lock to command+control+option+shift. Escape if no other key used.", | |
"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