[openbox] Set position of root-menu when triggered via hot-key

John Bell johnfbell3 at gmail.com
Sat Sep 3 11:46:41 EDT 2011


Well I tried multiple actions in a keybind and openbox just fires them
off all at the same time.

<keybind key="W-A-space">
      <action name="Execute">
        <command>xdotool mousemove --sync 600 500</command>
      </action>

      <action name="ShowMenu">
        <menu>root-menu</menu>
      </action>

</keybind>

Maybe since the xdotool docs say that they don't actually wait for the
mouse to get to the position specified before releasing the sync, just
until any movement occurs at all (WTF!!!), that's the problem.  (THEN
WHY THE FUCK HAVE A **SYNC** OPTION!!!!)

I tried with an "&amp;" at the end of the xdotool command.
I tried it via a shell script.
I tried with a prompt, in both/either actions.  Openbox ignores a
<prompt> in a ShowMenu action. and goes ahead and fires the ShowMenu
if one is in the Execute action.
I tried reversing the order of the actions (no joy).
I tried every combination of xdotool commands and options I could
think of...no luck.

This shouldn't be hard for the devs to fix.  After all when you change
desktops you get a centered dialog that shows what desktop you're
going to.

I even looked into getting the source and making my own patch (and I
haven't touched C code since 1993) and the only documentation I found
was about setting up on Fedore 6 or 7. </sigh>


You'd think that for a WM as heavily invested in making itself
keyboard that you wouldn't be expect the main menu to be tied to the
mouse for no apparent reason.


More information about the openbox mailing list