Skip to content

Instantly share code, notes, and snippets.

@fluffybeing
Last active November 20, 2018 02:45
Show Gist options
  • Save fluffybeing/789413c5fb9629cbb8114d900a7602ac to your computer and use it in GitHub Desktop.
Save fluffybeing/789413c5fb9629cbb8114d900a7602ac to your computer and use it in GitHub Desktop.
Karbiner Complex Rules
{
"title": "Caps and return to ctrl. Ctrl to caps.",
"rules": [
{
"description": "Post left_ctrl when return_or_enter is hold.",
"manipulators": [
{
"from": {
"key_code": "return_or_enter",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_control"
}
],
"to_if_alone": [
{
"key_code": "return_or_enter"
}
],
"type": "basic"
}
]
},
{
"description": "Post escape if caps is pressed alone, left_ctrl otherwise",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control"
}
],
"to_if_alone": [
{
"key_code": "escape"
}
],
"type": "basic"
}
]
},
{
"description": "Map left_ctrl to caps_lock.",
"manipulators": [
{
"from": {
"key_code": "left_control",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "caps_lock"
}
],
"type": "basic"
}
]
}
]
}
@fluffybeing
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment