Skip to content

Instantly share code, notes, and snippets.

@espoelstra
Last active March 18, 2020 00:19
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 espoelstra/7457c97a09d966e4cb62c6bc406b0422 to your computer and use it in GitHub Desktop.
Save espoelstra/7457c97a09d966e4cb62c6bc406b0422 to your computer and use it in GitHub Desktop.
karabiner elements esc inside VM where outer host has Caps remapped already `open 'karabiner://karabiner/assets/complex_modifications/import?url=https://gist.githubusercontent.com/espoelstra/7457c97a09d966e4cb62c6bc406b0422/raw/esc_ctrl.json'`
{
"title": "esc double mapping",
"rules": [
{
"description": "left Ctrl is remapped to Cmd, need esc when held to simulate other ctrl",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "escape",
"modifiers": {
"optional": [
"any"
]
}
},
"to_if_alone": [
{
"key_code": "escape"
}
],
"to_if_held_down": [
{
"key_code": "right_control"
}
]
},
{
"type": "basic",
"from": {
"key_code": "left_control"
},
"to": {
"key_code": "left_command"
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment