You are not logged in.
For couple of days I am struggling with one thing.
You can open app menu by default with Ctrl+ESC or ALT+F1.
You can easily bind any other key/combinations to open app menu.
But! You can't bind none key/combination to hide the menu. By default you can hide it with Escape OR by clicking away outside the menu itself.
You may ask, why in the world would I need this?
Here's what I want in the end.
I want to bind Super_L to both open and close the menu. Just like in Ubuntu, MS Windows (sorry). So Super_L would be a TOGGLEr.
I could write a small script which would be executed when Super_L is pressed. And it would open menu if it is closed and close if it's opened.
But here are problems:
1. When menu is opened, openbox stops reacting to any other key combinations. So using xdotool like programs is no help. (I thought may be I could emulate Escape button pressing)
2. I can't find out if menu is opened through a program.
3. I don't know how to close the menu (solving first problem would probably help, dirty but would probably work )
Offline
I don't have LXDE to test this, but one possible hack would be to have your script do the following when Super_L is pressed:
1) (temporarily) remap Super_L to escape with xmodmap
2) open the menu, perhaps with xdotool
3) unmap/remap Super_L back to mod4 with xmodmap
As long as step two isn't "backgrounded" it would/should hopefully block until the menu is closed. This might not work with a simple xdotool command, but if there is a more directo way of envoking the menu it might.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Trilby, thanks! After playing with xmodmap, xbindkeys etc. I give up.
Reading source codes I found that it uses GTK popup which takes focus of keyboard and mouse, so it's impossible to use anything besides Escape button. Try to remap Super_L to act as Escape almost didn't work when I was able to make it working, I started to face tons of other issues.
Probably I will try to hack the sources or even use another menu.
Last edited by bakytn (2013-03-17 12:55:03)
Offline