You are not logged in.

#1 2009-06-29 07:50:18

futonrevolutionary
Member
Registered: 2008-09-16
Posts: 9

assigning openbox client menu to mouseclick on pypanel

In many window managers, if you right-click on a program in your panel it will show the 'client menu", or a menu with options to control the size and positioning and whatnot (maximize, minimize, close, etc). How would I accomplish this in Openbox using pypanel? Since the event handling is controlled by pypanel and the menu is drawn by OB, there's no simple feature to do this.

Or is there? Am I missing something in the docs? Anyone else have a setup like this with OB and pypanel?

Offline

#2 2009-06-29 08:00:19

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: assigning openbox client menu to mouseclick on pypanel

In openbox set up a keybind for showing the menu (for example mod4+w).
For the pypanel action you can set xdotool to simulate a fake keypress (read the manpage).
In this example it would be: "xdotool key mod4+w"


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#3 2009-06-29 08:12:31

futonrevolutionary
Member
Registered: 2008-09-16
Posts: 9

Re: assigning openbox client menu to mouseclick on pypanel

That opens it at the top right corner. Is there any way it can follow the mouse?

Offline

Board footer

Powered by FluxBB