Skip to content

Instantly share code, notes, and snippets.

@spro
Created January 5, 2021 02:13
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 spro/9a84c2deb2da0b9b4202eaa4fe082bb0 to your computer and use it in GitHub Desktop.
Save spro/9a84c2deb2da0b9b4202eaa4fe082bb0 to your computer and use it in GitHub Desktop.
Karabiner complex mapping to set Control_L to Esc when tapped, or Control when held
{
"title": "Control_L to Esc when tapped",
"rules": [
{
"description": "Control_L to Esc when tapped, Control when held.",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_control",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "escape"
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment