Skip to content

Instantly share code, notes, and snippets.

@swarn
Created August 17, 2019 17:03
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 swarn/b94f04bd7ceab8fd64da63a7e37f99f5 to your computer and use it in GitHub Desktop.
Save swarn/b94f04bd7ceab8fd64da63a7e37f99f5 to your computer and use it in GitHub Desktop.
Karbiner Elements: Caps alone is Esc; Caps with another key is Ctrl; Caps with Shift is Caps
{
"description": "Caps alone is Esc; Caps with another key is Ctrl; Caps with Shift is Caps",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {
"mandatory": [
"shift"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "caps_lock"
}
],
"type": "basic"
},
{
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control"
}
],
"to_if_alone": [
{
"key_code": "escape"
}
],
"type": "basic"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment