my laptop (thinkpad x230) have an irritating layout (for example i hit the PageUp/PageDown key accidentally instead of Left/Right, and the PrintScreen key in the bottom). I have overcome partially this issue by remapping keys with xmodmap. Now the problem i face is when i put my laptop into a docking station and use a full keyboard, i have the keys messed up. I found a solution to make 2 different .Xmodmap files and bind a keyboard shortcut( i use i3wm) to change the configuration. But i am wondering, is there any method to set the keycode on each different xinput device differently?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.