1

I have been looking on askubuntu for help, but couldn't find the help I needed, so now I just ask.

My k key doesn't work, when pressed, and since its a older laptop, i just wish to remap the k key unto the right shift.

From what I have gathered, I need to use xmodmap and xev, but I can't figure out how to remap the k key in question.

(Copy pasting 'k' is getting very annoying xD )

Hope some of you can help me. Thanks!

Kaz Wolfe
  • 34,122
  • 21
  • 114
  • 172

1 Answers1

2


open teminal and type this command

xmodmap -e "keycode 62 = k"

then run this command

xmodmap -pke >~/.Xmodmap

now press Right Shift , you will see typed "k"

Activate the changes(for this login session only) with following command:

xmodmap ~/.Xmodmap


Making changes persistent across reboots:

If it doesn't exist, create a file in your home folder called .xinitrc.

touch .xinitrc

Place the following line in the file and save the file:

    xmodmap ~/.Xmodmap
αғsнιη
  • 35,660