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!

1
  • Also why your <k> key isn't working? is it broken? what is the output of pressing that on running xev? Aug 29, 2014 at 10:36

1 Answer 1

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
4
  • My k key is broken, so there is no output when i press it :) Aug 30, 2014 at 19:03
  • 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 :) Sep 1, 2014 at 14:43
  • @RasmusNielsen I have updated my answer. Sep 1, 2014 at 14:57
  • For some reason I can't make a file using the 'touch' command, nor with >newfile or making a textfile called .xinitrc :s I know its a bit of a pain,but I'm quiet new to ubuntu :) Sep 3, 2014 at 17:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .