Take the 2-minute tour ×

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



Browse other questions tagged or ask your own question.