Skip to content

Instantly share code, notes, and snippets.

@kdkasad
Created June 3, 2025 23:25
Show Gist options
  • Select an option

  • Save kdkasad/5dfc6aaed15e9260c0cd9b41911cf3fe to your computer and use it in GitHub Desktop.

Select an option

Save kdkasad/5dfc6aaed15e9260c0cd9b41911cf3fe to your computer and use it in GitHub Desktop.
Custom Caps Lock rule for Karabiner-Elements
{
"description": "Caps Lock -> Escape when tapped, Command+Control+Option+Shift when held, Caps Lock when tapped with Shift held",
"manipulators": [
{
"description": "Toggle caps lock on shift+caps_lock",
"from": {
"key_code": "caps_lock",
"modifiers": { "mandatory": ["shift"] }
},
"to": [{ "key_code": "caps_lock" }],
"type": "basic"
},
{
"description": "Change caps_lock to command+control+option+shift when held, or Escape when tapped.",
"from": { "key_code": "caps_lock" },
"to": [
{
"key_code": "left_shift",
"modifiers": ["left_command", "left_control", "left_option"]
}
],
"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