Skip to content

Instantly share code, notes, and snippets.

@yoshuawuyts
Created July 14, 2024 15:44
Show Gist options
  • Save yoshuawuyts/fe07f524c0e5972e41f61fbf845e0f06 to your computer and use it in GitHub Desktop.
Save yoshuawuyts/fe07f524c0e5972e41f61fbf845e0f06 to your computer and use it in GitHub Desktop.
This is the good modifier for Karabiner - use this as a "complex modification" - it makes the caps key work the way it should
{
"description": "Change caps_lock to left_control if pressed with other keys, change caps_lock to escape if pressed alone.",
"manipulators": [
{
"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