yqrashawn / GokuRakuJoudo

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

How do I exclue certain devices from a particular rule? #113

Closed atanasj closed 3 years ago

atanasj commented 3 years ago

I want to exclude more than one device from a particular rule.

I have tried the below (excerpt of what I think is the relevant code), but it only seems to work for one of the devices.

:annie-q          [{:product_id 41617 :vendor_id 
:annie-q-bt       [{:product_id 0 :vendor_id 13}]

{:des   "left_command to left_option"
  :rules [:!annie-q :!annie-q-bt [:##left_command :left_option]]}

Any help would be greatly appreciated.

yqrashawn commented 3 years ago

try this

{:des   "left_command to left_option"
 :rules [[:condi :!annie-q :!annie-q-bt]
         [:##left_command :left_option]]}
atanasj commented 3 years ago

That's what I needed! Thanks @yqrashawn!! :-)