pqrs-org / KE-complex_modifications

Karabiner-Elements complex_modifications rules
https://ke-complex-modifications.pqrs.org/
The Unlicense
1.31k stars 1.1k forks source link

Disable manipulator for key combination? #1716

Open austengary33 opened 1 month ago

austengary33 commented 1 month ago

I have the following rule:

Can I change it so when I hit left command & tab in macOS, that doesn't get switched?

{ "description": "Swap command and control", "manipulators": [ { "conditions": [ { "bundle_identifiers": [ "com\.microsoft\.rdc\.mac", "com\.ericom\.blazeclient", "^com\.carriez\.rustdesk$" ], "type": "frontmost_application_if" } ], "from": { "key_code": "left_control", "modifiers": { "optional": ["any"] } }, "to": [{ "key_code": "left_command" }], "type": "basic" }, { "conditions": [ { "bundle_identifiers": [ "com\.microsoft\.rdc\.mac", "com\.ericom\.blazeclient", "^com\.carriez\.rustdesk$" ], "type": "frontmost_application_if" } ], "from": { "key_code": "left_command", "modifiers": { "optional": ["any"] } }, "to": [{ "key_code": "left_control" }], "type": "basic" }, { "conditions": [ { "bundle_identifiers": [ "com\.microsoft\.rdc\.mac", "com\.ericom\.blazeclient", "^com\.carriez\.rustdesk$" ], "type": "frontmost_application_if" } ], "from": { "key_code": "right_control", "modifiers": { "optional": ["any"] } }, "to": [{ "key_code": "right_command" }], "type": "basic" }, { "conditions": [ { "bundle_identifiers": [ "com\.microsoft\.rdc\.mac", "com\.ericom\.blazeclient", "^com\.carriez\.rustdesk$" ], "type": "frontmost_application_if" } ], "from": { "key_code": "right_command", "modifiers": { "optional": ["any"] } }, "to": [{ "key_code": "right_control" }], "type": "basic" } ] }

NoctuaCode commented 3 weeks ago

Did you try adding a rule like this one ?

{
    "description": "Force Command + Tab",
    "manipulators": [
        {
            "from": {
                "key_code": "tab",
                "modifiers": {
                    "mandatory": ["command"],
                    "optional": ["left_shift"]
                }
            },
            "to": [
                {
                    "key_code": "tab",
                    "modifiers": ["left_command"]
                }
            ],
            "type": "basic"
        }
    ]
}