Please help with remapping keys

Hey all, I got a laptop with a non-eng keyboard and there is annoyingly an extra key between left shift and z that I keep hitting when I mean to hit left shift. I would like to remap this button to do what left shift does.

Using the showkey command I have found that the keycode of this button is 86 and the keycode of left shift is 42.

I tried "xmodmap -e “keycode 86 = Shift_L” but it doesn’t seem to do anything.

Any assistance would be really great. Note I don’t wanna switch this key with left shift, I want them both to do what shift does.

Figured it out

I installed a program called xkeycaps which allows you to graphically remap keys. This creates a hidden file in your home dir called .xmodmap-blablah. To make it persistent across reboots you need to create a script with the command “xmodmap /home/user/.xmodmap-blahblah” and have that script automatically run on startup.

I am not sure if this is the best way to do this, but it works for me.

Yes that is how it works. Why not not mark your own post as a solution unless you want more input on it.

I’m using xkb-switch

edit : nvm, I though you wanted to switch layout

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.