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.