0

I have a lot of custom keybindings when attaching my non-English Windows-Keyboard to my English Mac.

When working directly with the Mac, I have to disable some of the bindings by commenting out a big section in the keybindings.json.

How can I automate this settings switch?

I know that keybindings use a when clause, but I did not find a way to check which keyboard is active or if I am on battery or not, or any other difference in the two setups.

Juve
  • 10,584
  • 14
  • 63
  • 90
  • for the computer all keyboards are the same, the OS translates the keycodes to keys based on the selected language, the actual print on the keys is just decoration for the user – rioV8 Apr 16 '22 at 21:24

1 Answers1

0

You can use the extension Extra Context.

You can set (or toggle) a context variable to select a bunch of keybindings.

You can use multi-command to combine several set-on set-off for variables to select a particular keyboard.

rioV8
  • 24,506
  • 3
  • 32
  • 49