Skip to content

Instantly share code, notes, and snippets.

@z11i
Last active December 10, 2022 10:20
Show Gist options
  • Save z11i/efda8a182c42815c2e2c822e96ff189e to your computer and use it in GitHub Desktop.
Save z11i/efda8a182c42815c2e2c822e96ff189e to your computer and use it in GitHub Desktop.
Karabiner complex modification: Post command+backtick if command+escape is pressed. This is useful to those who use 60% compact keyboards on which backtick/grave keys are replaced with the escape key.
{
"title": "Emit Command+Backtick if Command and Escape are pressed",
"rules": [
{
"description": "Change escape to backtick if pressed with command",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "escape",
"modifiers": {
"mandatory": [
"left_command"
]
}
},
"to": [
{
"key_code": "grave_accent_and_tilde",
"modifiers": [
"left_command"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "escape",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "grave_accent_and_tilde",
"modifiers": [
"right_command"
]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment