Skip to content

Instantly share code, notes, and snippets.

@marcisme
Created June 26, 2017 03:30
Show Gist options
  • Save marcisme/4789ebc09f25c031803989c53527530d to your computer and use it in GitHub Desktop.
Save marcisme/4789ebc09f25c031803989c53527530d to your computer and use it in GitHub Desktop.
Karabiner Elements Config
{
"profiles": [
{
"complex_modifications": {
"rules": [
{
"manipulators": [
{
"description": "Change caps_lock to control when used as modifier, escape when used alone",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control"
}
],
"to_if_alone": [
{
"key_code": "escape",
"modifiers": {
"optional": [
"any"
]
}
}
],
"type": "basic"
},
{
"description": "Change left_control to command+control+option.",
"from": {
"key_code": "left_control",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control",
"modifiers": [
"left_command",
"left_option"
]
}
],
"type": "basic"
}
]
}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment