Friday, September 30, 2022
HomeApplekeyboard - Utilizing Karabiner Components how can I exploit the important thing...

keyboard – Utilizing Karabiner Components how can I exploit the important thing pressed in from.any, in my to expression?


To start out, if there’s an lively group for Karabiner discussions, I hope somebody can level me at it. Within the meantime, let me state the issue.

I’ve a USB foot swap which triggers each key down/up occasions on the bodily down occasion, so the one approach for me to make it usable is with Karabiner, to toggle a state when tapped.

For instance, Say I would like it to toggle on the Command key, how is that performed?

The mechanism I am utilizing to arrange the toggle works, simply utilizing a variable that I can conditionally set. Let’s name it foot-switch-toggle-mode

When it is worth is 1 all key_codes must be given a Command modifer…

    {
        "circumstances": [
            {
                "name": "foot-swtich-toggle-mode",
                "type": "variable_if",
                "value": 1
            }
        ],
        "from": {
            "any": "key_code",
            "modifiers": {
                "non-obligatory": [
                    "any"
                ]
            }
        },
        "to": [
            {
                ?!? <= no idea!
            }
        ],
        "kind": "primary"
    },

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments