Last active
April 11, 2022 04:56
-
-
Save sam159247/892cd6c68a6e9be0a5f14315294a1541 to your computer and use it in GitHub Desktop.
[Karabiner-Elements] caps_lock mapping
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "caps_lock mapping", | |
"rules": [ | |
{ | |
"description": "Change caps_lock to command+control+option+shift", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "caps_lock", | |
"modifiers": { "optional": ["any"] } | |
}, | |
"to": [ | |
{ | |
"key_code": "left_shift", | |
"modifiers": ["left_command", "left_control", "left_option"] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Toogle caps_lock by pressing left_shift then right_shift", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "right_shift", | |
"modifiers": { | |
"mandatory": ["left_shift"], | |
"optional": ["caps_lock"] | |
} | |
}, | |
"to": { "key_code": "caps_lock" }, | |
"to_if_alone": [{ "key_code": "right_shift" }], | |
"type": "basic" | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Move this json file to
~/.config/karabiner/assets/complex_modifications