I'd like to use a second USB keyboard connected to my box running Ubuntu to generate special keystrokes. I'd like to map those in Vim to very specific actions.
I plug both my main keyboard and the secondary keyboard on two different USB ports.
How can I configura Ubuntu so that the keystrokes of only one of the keyboards are mapped to different keycodes?
For example, when I press the letter A on keyboard 2, I'd like it to appear as if I had pressed XF86XK_Launch0.