Reputation: 10834
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.
Upvotes: 0
Views: 93
Reputation: 28783
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.
Upvotes: 0