On 16/08/2014 08:40, Dominik Vogt wrote:
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 Iconify off
+ I WindowShade off
+ I Raise
Example uses:
AddToFunc ToggleFvwmConsole
+ I ToggleWindow FvwmConsole "Module FvwmConsole"
More complex example:
AddToFunc RunXMessages
+ I Exec rxvt -geometry -0-0 -T XMessages -n XMessages -e tail -f ~/.X.err
AddToFunc ToggleXMessages
+ I ToggleWindow XMessages "Function RunXMessages"
Thanks Dominik, That's helpful. So, wrt to my function, it would look
like this:
DestroyFunc ClosePanelOpenDock
AddToFunc ClosePanelOpenDock
+ I All (Panel) KillModule
+ I TestRc (Match) Module FvwmButtons Dock -g +300-0
DestroyFunc CloseDockOpenPanel
AddToFunc CloseDockOpenPanel
+ I All (Dock) KillModule
+ I TestRc (Match) Module FvwmButtons Panel -g $[vp.width]x24+0+0
DestroyFunc SwitchPanelOrDock
AddToFunc SwitchPanelOrDock
+ I Next (Panel) ClosePanelOpenDock
+ I TestRc (NoMatch) CloseDockOpenPanel
Aside from any errors, would you have any recommendations to improve
what i'm trying to achieve?
One idea I had was to have a form of some kind pop-up when I start the
fvwm session asking which, if any, panel/dock i'd like to start.