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 have a keyboard with two "Win" keys but without "Menu" key. I'd like to bind my right Win as Menu. I tried do used xev in terminal and get keycode for .Xmodmap file but can't take code of right Win. Just always open system menu of ubuntu. How I can do it?

share|improve this question
add comment

3 Answers

If you haven't tried the keyboard preference mapping under Gnome, you should give it a look. This doesn't fit your description exactly, but it might work well enough.

From type, type keyboard to go to the keyboard preferences. Select the Layouts tab, then choose Win/Alt behavior.

keyboard preferences

share|improve this answer
I tried it before ask :) But nothing works. –  user24769 Sep 11 '11 at 6:38
add comment

Perhaps you can get the keycode if you first change the Win key from being a one-key shortcut for the menu. How this can be done has been answered here:

I have no problem getting the keycodes (133,135), and I have done exactly this.

share|improve this answer
add comment

The Win key in Ubuntu is a modifier. It treated just like the Alt and Ctrl keys and as such cannot be used as a standalone key.

share|improve this answer
It is used as a "standalone" key in both 11.04 and 11.10. It does open the "main menu", which is dash in Unity, but it's also used in combination with other keys. Your answer is wrong. -1 –  Jo-Erlend Schinstad Sep 11 '11 at 13:40
add comment

Your Answer


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.