Skip to content

Instantly share code, notes, and snippets.

@lubert
Last active September 19, 2022 19:13
Show Gist options
  • Save lubert/bfebf0c6af1d93609e9a74e3e41add37 to your computer and use it in GitHub Desktop.
Save lubert/bfebf0c6af1d93609e9a74e3e41add37 to your computer and use it in GitHub Desktop.
Karabiner Elements - Swap left command and option keys only in terminal
{
"title": "Swap left command and option keys only in Terminal",
"rules": [
{
"description": "Change left_command to left_option",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_command"
},
"to": [
{
"key_code": "left_option"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.apple\\.Terminal$",
"^com\\.googlecode\\.iterm2$"
]
}
]
}
]
},
{
"description": "Change left_option to left_command",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_option"
},
"to": [
{
"key_code": "left_command"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.apple\\.Terminal$",
"^com\\.googlecode\\.iterm2$"
]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment