Skip to content

Instantly share code, notes, and snippets.

@dguo
Last active March 23, 2019 02:35
Show Gist options
  • Save dguo/d0a1e22ee68bdb6e9a794ff6f4adee88 to your computer and use it in GitHub Desktop.
Save dguo/d0a1e22ee68bdb6e9a794ff6f4adee88 to your computer and use it in GitHub Desktop.
blog - Remap Caps Lock to Escape and Control - caps-lock-karabiner
{
"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"
}
]
}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment