Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alexandersix/a8fdfef1f48eac0fadb13cd807566f7d to your computer and use it in GitHub Desktop.
Save alexandersix/a8fdfef1f48eac0fadb13cd807566f7d to your computer and use it in GitHub Desktop.
A Karabiner-Elements complex modification rule
{
"title": "Caps Lock To Control/Escape",
"author": "Alexander Six (originally by Caleb Porzio(calebporzio.com))",
"homepage": "https://gist.github.com/alexandersix/a8fdfef1f48eac0fadb13cd807566f7d",
"import_url": "karabiner://karabiner/assets/complex_modifications/import?url=https://gist.githubusercontent.com/AlexanderSix/a8fdfef1f48eac0fadb13cd807566f7d/raw/60ae796effced8f71d9958371b2539a910c69b2c/caps_lock_to_command_escape.json",
"rules": [
{
"description": "Caps Lock to Control/Escape",
"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