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.

I know the easy ways to remap caps lock, etc, but I haven't found out how to change my Menu key to be an additional Ctrl key. Anyone know how to do this? Thanks.

share|improve this question

3 Answers 3

I'm kinda guessing based on how I've remapped Caps Lock before, but...

Create a ~/.Xmodmap file containing:

clear 135
keycode 135 = Control_R

I'm using 135 because that's the keycode xev told me on my keyboard when I hit menu. Yours may vary. Log out & back in to take effect.

setxkbmap -option ctrl:menu may work if this doesn't.

share|improve this answer
    
No dice. The clear errors it. When I just try: keycode 135 = Control_R Control_R Control_R Control_R It is labelled Control_R in xev, but is a "bad key" in control modifier when I xmodmap -pm I've looked around and tried things for most of the morning. Still no success. –  K Poole Aug 19 '10 at 20:16
up vote 3 down vote accepted

Finally got it!

Maco was close. The solution is (in .Xmodmap):

remove Control = Control_R
keycode 135 = Control_R Control_R Control_R Control_R
add Control = Control_R
share|improve this answer

This is probably the answer your looking for.

share|improve this answer
    
Thanks for the quick reply. I saw this post and tried out xev, but don't think it mapped a value to the menu key. –  K Poole Aug 19 '10 at 4:12
1  
This should've been a comment instead of an answer. –  Roger Pate Aug 19 '10 at 5:39

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.