0

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!

  • Also why your <k> key isn't working? is it broken? what is the output of pressing that on running xev? – αғsнιη Aug 29 '14 at 10:36
1


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
  • My k key is broken, so there is no output when i press it :) – Rasmus Nielsen Aug 30 '14 at 19:03
  • @RasmusNielsen try with my answer, that will be fixed and press your <Right shift> you will see typed "k" as well :) – αғsнιη Aug 30 '14 at 19:17
  • How do I save it, so that after a reboot, it still is at Right Shift? I have tried typing just as you say, but after a reboot I have to type it all over :) – Rasmus Nielsen Sep 1 '14 at 14:43
  • with this command xmodmap -pke >~/.Xmodmap I mentioned in answer. – αғsнιη Sep 1 '14 at 14:46
  • @RasmusNielsen I have updated my answer. – αғsнιη Sep 1 '14 at 14:57

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.