Skip to content

Instantly share code, notes, and snippets.

@benwiz
Created August 14, 2019 00:01
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 benwiz/c393a4ba835aaa759a5a8da9028357c9 to your computer and use it in GitHub Desktop.
Save benwiz/c393a4ba835aaa759a5a8da9028357c9 to your computer and use it in GitHub Desktop.
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