Sample Header Ad - 728x90

Can I swap the command and control only in iterm2 with karabiner?

2 votes
1 answer
1618 views
So I'm new to Karabiner, and I'm trying to swap the command and control key only when I'm in iterm2. Here's the json file I came up with. Currently it swaps the control key to a command key but does not switch the command key to a control key. { "title": "CTRL/CMD Key Swap", "rules": [ { "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$" ] } ] }, { "type": "basic", "from": { "key_code": "left_control" }, "to": { "key_code": "left_command" }, "conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "^com\\.googlecode\\.iterm2$" ] } ] } ] } ] } How can I swap the command and control key only when I'm in iterm2 app?
Asked by MoonlessNightss (71 rep)
Dec 12, 2021, 06:13 AM
Last activity: May 21, 2025, 08:02 PM