On 01/06/2014 13:30, Dominik Vogt wrote:
On Mon, Jan 06, 2014 at 11:09:59AM +0000, James Griffin wrote:
I have a panel on the bottom of the display, i'd like a function i
can bind to a key press combination that will open it if it's not
already and close it if it is.
I have this in my config:

#//
#// Application toggling function
#//
#// first argument is the window name, second argument is the command to start
#// the application.
AddToFunc ToggleWindow
+ I None ($$0, CirculateHit) $$1
+ I TestRc (Match) Break
+ I Next (currentpage, visible, !iconic, $$0, CirculateHit) Close
+ I TestRc (Match) Break
+ I Next ($$0, CirculateHit) Function MakeVisible

AddToFunc MakeVisible
+ I MoveToDesk
+ I MoveToPage
+ I MoveToScreen
+ I Raise
+ I Iconify off
+ I WindowShade off

AddToFunc ToggleFvwmConsole
+ I ToggleWindow FvwmConsole "Module FvwmConsole"

AddToFunc ToggleXMessages
+ I ToggleWindow XMessages "Function RunXMessages"

etc.

If that's not what you're looking for, please describe what you're
trying to do in more detail.

I've tried several ways, I can seem to get the dual function action
right. Does anyone have some tips as to how i can do this?
Ciao

Dominik ^_^  ^_^


Hi Dominik, that is helpful. 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. This is then bound to a key stroke(s) essentially allowing me to open and close the panel when I need using a simple keyboard action.

Cheers, Jamie

Reply via email to