[ad_1]
So I am new to Karabiner, and I am attempting to swap the command and management key solely once I’m in iterm2. This is the json file I got here up with. At present it swaps the management key to a command key however doesn’t change the command key to a management key.
{
"title": "CTRL/CMD Key Swap",
"guidelines": [
{
"description": "swap left control/command keys for iterm2",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_command"
},
"to": {
"key_code": "left_control"
},
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com.googlecode.iterm2$"
]
}
]
},
{
"sort": "primary",
"from": {
"key_code": "left_control"
},
"to": {
"key_code": "left_command"
},
"situations": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com.googlecode.iterm2$"
]
}
]
}
]
}
]
}
Thanks
[ad_2]
