On 01/06/2014 15:22, Dominik Vogt wrote:
On Mon, Jan 06, 2014 at 01:33:47PM +0000, James Griffin wrote:
Although, what I need is to have a
function that will test to see if my fvwmbuttons panel is open; if
it is not, open it; if it is close it.
I see. I have this in my config:
If you give the button that controls the panel an Id, you can
"click" it with a command:
*FvwmButtons(2x1+13+0, Padding 2, Panel(indicator 15) FvwmPagerPanel `Module
FvwmPager FvwmPagerPanel 0 3`, Id panel_control_button)
You can then use the fvwm core command to press the button
SendToModule FvwmButtons PressButton panel_control_button 1
or as a key binding
key f1 a n SendToModule FvwmButtons PressButton panel_control_button 1
This works just as if you click on the panel button in
FvwmButtons with mouse button 1.
Actually it's not really necessary to give the button an id, you
can also use the button's coordinates (+13+0 in the example), but
that is less convenient because if the FvwmButtons layout changes,
you may have to recalculate the coordinates.
Ciao
Dominik ^_^ ^_^
Thanks Dominik, helpful info. I've come up with something that works ok.