- First identify current keycodes by running
xev
in the terminal - Create a file in the home directory with name
.Xmodmap
- Inside of the file, remap the keycode with desired keyName
for me, I waant to replace Next key into End key.
110 Home - HOME
115 End - END
112 Prior - PAGEUP
117 Next - PAGEDOWN
to do ths, I added keycode 117 = End
which determines keycode 117
is now work as End
key
- After typing desired keycode and name accordingly, save the file as
.Xmodmap
in home direcctory. - then run the command
xmodmap ~/.Xmodmap
from terminal.
That's all. you are now all set