You are not logged in.

#1 2008-01-13 05:33:26

isolier
Member
Registered: 2008-01-10
Posts: 24

"Running" openbox menu?[SOLVED]

Is it possible to issue a command to open the root openbox menu(then menu that pops open on desktop right click)?  I want to use that as a button in pypanel...  Thanks for your time in advance.

Last edited by isolier (2009-01-24 17:56:45)

Offline

#2 2008-01-13 08:32:30

SNP
Member
From: Athens / Greece
Registered: 2007-12-05
Posts: 18

Re: "Running" openbox menu?[SOLVED]

Very interesting question.

I was wondering the same about the middle mouse button menu.

I hate that xclock application running when i click on the date/time so I hoped that the Desktop Selection Menu (the one that shows up with the middle mouse button) could be enabled instead.

Offline

#3 2008-01-13 13:36:18

xd-0
Member
From: Sweden
Registered: 2007-11-02
Posts: 327
Website

Re: "Running" openbox menu?[SOLVED]

As far as I can tell the menu command is only accesible through either mouse or keycombinations.
Perhaps there is a way to run keycombinations through a terminal command. And if so, you could then make your menu-button.

Either way, try to post the question again in the open-box mailing list.

Offline

#4 2008-01-13 19:41:32

isolier
Member
Registered: 2008-01-10
Posts: 24

Re: "Running" openbox menu?[SOLVED]

Hmm, good food for thought; I will post the question in the openbox mailing list as you suggested, thanks.

Offline

#5 2008-01-13 22:01:27

xd-0
Member
From: Sweden
Registered: 2007-11-02
Posts: 327
Website

Re: "Running" openbox menu?[SOLVED]

Np, if you find an answer, please pm me or post it here. Im a little curious if it works smile

Offline

#6 2008-01-15 06:46:01

Evanlec
Member
From: NH, USA
Registered: 2007-12-16
Posts: 141
Website

Re: "Running" openbox menu?[SOLVED]

yea interesting idea, what would be the cmd line entry to start the OB menu?

I wouldnt mind using the openbox menu in other wm's (xmonad for now)

Offline

#7 2008-01-30 00:21:46

rttommy
Member
Registered: 2007-12-27
Posts: 19

Re: "Running" openbox menu?[SOLVED]

I asked myself the same question and found a great application called xdotool. I added it on AUR. One of its usage is to simulate a keypress. Simply add this code somewhere in the <keyboard> section of your rc.xml:

    <keybind key="A-C-q">
      <action name="ShowMenu">
        <menu>root-menu</menu>
      </action>
    </keybind>

Then, just lauch your menu with:

# xdotool key ctrl+alt+q

A launcher in pypanel would look something like this:

LAUNCH_LIST     = [
                   ("xdotool key ctrl+alt+q", "/usr/share/pixmaps/openbox.png"),
]

Of course, you can change the keyboard shortcut, etc...
Hope this helps.
-T

Last edited by rttommy (2008-01-30 00:23:26)

Offline

#8 2008-01-30 14:12:22

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: "Running" openbox menu?[SOLVED]

wow, great!

but where do i get the keyname of the windows key. under ob it's simply "W". i've tried Mod4, but it didn't work

vlad

PS: ok, got it! windows key is (at least for my machine) "super".

Last edited by DonVla (2008-01-30 14:18:44)

Offline

#9 2008-01-30 14:43:44

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: "Running" openbox menu?[SOLVED]

that should be added to Openbox wiki page 8)


Mr Green

Offline

#10 2008-01-30 16:55:19

rttommy
Member
Registered: 2007-12-27
Posts: 19

Re: "Running" openbox menu?[SOLVED]

Good idea, I just added it to the Openbox wiki page.
-T

Offline

Board footer

Powered by FluxBB