You are not logged in.
Hello there,
I couldn't figure out how I can open the Openbox menu by only pressing the Windows / Meta key.
I tried:
<keybind key="W">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</keybind>Only using W obviously only opens the menu when pressing the W key. What however works is for example <keybind key="W-w">. This opens the menu through Windows - W combination.
Last edited by orschiro (2013-11-24 09:10:26)
Offline
Using Super_L or Super_R as key works for me. ![]()
<keybind key="Super_L">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</keybind>Offline
@metak
Thanks. Almost what I need. However, this now also opens the menu when I press any other Windows / Meta key + <key> combination.
Can I somehow limit it to only open the menu on key release instead of key press events?
Last edited by orschiro (2013-11-18 18:49:14)
Offline
Thanks. Almost what I need. However, this now also opens the menu when I press any other Windows / Meta key + <key> combination.
Can I somehow limit it to only open the menu on key release instead of key press events?
I don't know if you can define key release and key press event separately in openbox. Then again I'm also not that much familiar with it.
edit: I was reading about it on http://openbox.org/wiki/Help:Bindings and it seems that 'release' is there for mouse only, I haven't seen anything for keyboard.
Last edited by metak (2013-11-21 11:27:08)
Offline
@metak
Thanks for looking into the current way of how bindings are supported.
I think it is worth to discuss this "feature" directly in the Openbox bugtracker:
Offline
You're right, that's not possible with Openbox at the moment.
I'd recommend you (a hacky solution) to bind menu to Winkey+Alt for example. Now if you want to open the menu, you just have to push in the middle of those two buttons so that both of them get pressed. Works great, just may take some time getting used to it.
Offline
@socials
Are you sure that this is working?
I tried the following bindings which do not trigger the menu with Winkey-Alt:
<keybind key="W-A">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</keybind> <keybind key="M-A">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</keybind> <keybind key="Super_L-A">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</keybind>Last edited by orschiro (2013-11-23 08:57:05)
Offline
That's A, not alt. Just like "W-" != "W", "A-" != "A". While I have not bound that combination, it should be "A-Super_L".
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
@Trilby
Cheers, your suggestion works. For now I will mark this thread as resolved as it is a matter of getting used to pressing Alt-Super_L which actually is quite a good workaround.
Offline