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 hardware "Windows" button on the front of my Lenovo Ideapad Yoga 13 that maps to the "Windows" key. According to xev, the keycode passed by the "Windows" key is the same that is passed by the Windows button.

When I have a certain X application running in the foreground (eg, fullscreened or with focus), I would like this Windows button to map to "Right click at the current cursor position".

Can I do this solely with xmodmap? How do I pass the "right click" event to the foreground X application? I would rather this change not affect the Unity Dash shortcut or Gnome Shell or whichever window manager I am using at the time.

share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.