1

Karabiner-Elements is awesome. But I don't understand modification rules.

I want to my insert key in my iMac to open Developer Tools. Can I show some examples?

Moowabo
  • 25
  • 5

1 Answers1

0

I don't quite understand your posting, especially your last sentence…

But, to answer your "posting headline", you might e.g. import this complex mod. (saved as "Insert_to_DevTools.json" into your ~/.config/karabiner/assets/complex_modifications folder):

{"title": "Insert key to open Developer Tools.",
 "rules":[
         { "description": "Remaps ''Insert'' key to ''Cmd-Opt-I''",
           "manipulators":[
                          { "from": { "key_code": "insert" },
                              "to":[{ "key_code": "i",
                                     "modifiers": ["command", "option"] }
                                    ],
                            "type": "basic"
}        ]}               ]}

(This code presumes that you have a distinct "insert key". If "insert" is only invoked by pressing "shift" you'd have to add ,"modifiers":{ "mandatory": ["shift"] } after "insert".)

Once you saved this json file, import it via K-E's tab "Complex Modifications" and check [X Enable] to activate it.

clemsam lang
  • 440
  • 3
  • 11