Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This snippet goes inside the `rules` array of ~/.config/karabiner/karabiner.json
{
"manipulators": [
{
"description": "Change caps_lock to control when used as modifier, escape when used alone (~/.config/karabiner/karabiner.json)",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control"
}
],
"to_if_alone": [
{
"key_code": "escape"
}
],
"type": "basic"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.