Skip to content

Instantly share code, notes, and snippets.

@sohocoke
Last active June 4, 2018 15:37
Show Gist options
  • Save sohocoke/61e0ff7328b06357e02375ae89ea6bc2 to your computer and use it in GitHub Desktop.
Save sohocoke/61e0ff7328b06357e02375ae89ea6bc2 to your computer and use it in GitHub Desktop.
Karabiner-elements rule to remap press-hold ESC to cmd-W
{
"title": "Hold Keys",
"rules": [
{
"description": "Hold Esc to cmd+W",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "escape"
},
"to": [
{
"key_code": "escape"
}
],
"to_if_held_down": [
{
"key_code": "w",
"modifiers": ["right_command"]
}
],
"conditions": [
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment