Change keymaps based on input keyboards
Answered
If two keyboards are connected to a computer, would it be possible to have different set of shourtcuts for each? So it would automatically "change" the current one.
We are doing pair programming and it would be very convenient. :)
Please sign in to leave a comment.
It's not possible to switch keymaps automatically, but you can use View | Quick Switch Scheme..., Keymap to switch between keymaps really quickly. If you record a macro to choose specific keymap via these actions and assign a shortcut to it, you could probably do it with a single shortcut in the future.
Been thinking about this and it doesn't look like it would be appropriate to ask everyone who pairs with me to change their workflow and make an additional click before they can do what they wanted.
Could this be achieved via plugin? OS(Linux) recognizes different keyboards, could we have an automatic switch there?
Yes, you can write a plug-in which will switch the active keymap based on what physical keyboard is connected (if you can detect this event and tell which keyboard is connected using native APIs via JNA or some other way).