Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

My right control key on my keyboard sticks. I hit it accidentally often enough that I'd like to make it do absolutely nothing when it's hit. Is this possible?

share|improve this question
add comment

1 Answer

Use xev to find out what the keycode is. My Control_R is 105. Then run this:

xmodmap -e 'keycode 105 = NoSymbol'

If that works, head into the start-up applications dialogue and add a new entry to run that command on boot.

share|improve this answer
    
If you put 'keycode 105 = NoSymbol' in ~/.xmodmap, your session manager should ask you to automatically apply it on next startup. –  Jacob May 18 '11 at 18:10
    
Oli - Thanks so much. The command works beautifully. I did add a Startup with the command "xmodmap -e 'keycode 105 = NoSymbol'" but it didn't work for some reason. Any ideas? Jacob - Will it hurt anything if I create ~/.xmodmap myself? I don't seem to have one already. –  begtognen May 20 '11 at 15:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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