Skip to content

Instantly share code, notes, and snippets.

@tednaleid
Created June 15, 2017 00:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tednaleid/0982b620a022346a34d24a961c5bb517 to your computer and use it in GitHub Desktop.
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
// 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