
If there is need to modify repeat behavior as in my case above do this. Shift does not need this behavior hence the two commands.īasically all you need to do to swap key functions is to assign the function you want to swap to a new keycode say 62, add the function function of key 62 to the other key you want to swap e.g 111. The Up key needs the repeat function for example if you keep it pressed down it will continue to send the Up signal function as you say scroll up or are moving a game character. The last two commands deal with repeating and you will notice they are a little different from the first four.

#Remap keyboard keys linux code
xmodmap -e “keycode 111 = Shift_R” This command makes the key with code 111 the Shift Right key.xmodmap -e “keycode 62 = Up” This command makes the key with code 62 the UP key.All commands are run in a terminal $ (i.e. Generally the following steps are involved when remapping keys in my case. More often than not it is already installed as part of the xserver environment. To remap keys on Linux you will need the utility xmodmap to be installed.
#Remap keyboard keys linux windows
I will also show you how you can do it on Windows but since I don’t have Windows on my new machine I cannot guarantee it will work. I actually use Linux in my everyday life so naturally I will tell you how you can remap keys on Linux as I have already done and tested the process. Okay I am not a Linux fan as some people seem to think. That sounded interesting so I asked for more information from him and it turns out I don’t know everything there is to know about computers as I initially thought. Then a miracle happened: one of my colleagues suggested that I remap the keys. I don’t want to lie,this Lenovo laptop is lucky it still exists because many times I was tempted to hurl it across the room. For the past week I have been bellowing in rage as every time I want to hit the Shift R key I inadvertently moved the cursor up. For some reason the idiots at Lenovo decided to swap the Right Shift Key and the Up Arrow (see picture).Īnybody who touch types will tell you that is a terrible mistake and I am sure they had some sort of manufacturing reason for doing this but that’s just criminal in my book.

Okay it’s not really new but I am new to it. At least they did until they met the new Lenovo laptop I am currently using. My fingers will fly to the other keys automatically.

All I have to do is to reach for the F and J keys and I am good to go. Even though I spend hours on my computer I rarely ever look at the keyboard. Here is one of those things you probably did not know about me.
