yqrashawn / GokuRakuJoudo

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

feature-request: add optional location_id parameter #186

Open Dimentium opened 2 years ago

Dimentium commented 2 years ago

Hi! Is it possible to add optional parameter location_id to Goku? It is described here: https://karabiner-elements.pqrs.org/docs/json/complex-modifications-manipulator-definition/conditions/device/#identifiers

NeighNeighNeigh commented 2 years ago

This request spawned from discussion on the Karabiner Telegram. But it's slightly incorrect. The location_id parameter can be set by Goku. It's device_id that does not work.

The problem is that location_id changes depending on which port the device is plugged in. Ordinarily we could instead use vendor_id or product_id to target our device… But these options wont work when 2 identical devices are in use.

So it would be very nice if Goku could handle device_id for these cases