yqrashawn / GokuRakuJoudo

config karabiner with ease
GNU General Public License v3.0
1.14k stars 121 forks source link

Unable to use :froms in simultaneous rule #187

Open NeighNeighNeigh opened 1 year ago

NeighNeighNeigh commented 1 year ago

I have used :froms to re-designate my keys.

For example:

:froms {
        :foo {:key :##escape}  
        :bar {:key :##page_up}
}

The problem is, if I try to use two of these :froms in a simultaneous keystroke rule, Goku will fail. For example: [[:foo :bar] :f19] ← this will fail

yqrashawn commented 1 year ago

Hi, this is not suppored by karabiner. https://karabiner-elements.pqrs.org/docs/json/complex-modifications-manipulator-definition/from/simultaneous/#example You can see in above link. You can't specify modifiers in simultaneous. :##escape is same as

{
        "key_code": "escape",
        "modifiers": {
            "optional": [.....all modifiers]
        }
}

You can only use plain keys in the simultaneous vector

NeighNeighNeigh commented 1 year ago

Hi yqrashawn

Thanks for getting back to me,

Sadly, even when just using plain keys without any modifier, I can't seem to use :froms in a simultaneous rule. For example

    :froms {
        :tada1 {:key :q}
        :tada2 {:key :w}

The rule [[:tada1 :tada2] :a] will fail with the following error "ERROR: invalid \<from>…"