Skip to content

Instantly share code, notes, and snippets.

@sam159247
Last active April 11, 2022 04:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sam159247/892cd6c68a6e9be0a5f14315294a1541 to your computer and use it in GitHub Desktop.
Save sam159247/892cd6c68a6e9be0a5f14315294a1541 to your computer and use it in GitHub Desktop.
[Karabiner-Elements] caps_lock mapping
{
"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"
}
]
}
]
}
@sam159247
Copy link
Author

Move this json file to ~/.config/karabiner/assets/complex_modifications

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