key binding to raise and lower a panel

Hello,

I’m experimenting what I can do with fvwm. I configured a simple FvwmButtons panel that shows a desktop pager and some dockapps. I call the panel “DockappPanel”. The configuration looks like this:

[code]## configure panel that shows pager and dockapps
DestroyModuleConfig FvwmPager: *
*FvwmPagerPager: Back grey60
*FvwmPagerPager: Fore black
*FvwmPagerPager: Hilight white
*FvwmPager: MiniIcons

Style “DockappPanel” NoTitle, !Handles, Sticky, WindowListSkip

DestroyModuleConfig DockappPanel: *
*DockappPanel: ButtonGeometry 64x64-0+0
*DockappPanel: Columns 1
*DockappPanel: Back #808080
*DockappPanel: Frame 1
*DockappPanel: (1x4, Swallow “FvwmPager” ‘FvwmPager *’)
*DockappPanel: (Swallow (NoClose, UseOld) “wmCalClock” ‘Exec wmCalClock -24’)
*DockappPanel: (Swallow (NoClose, UseOld) “wmbiff” ‘Exec wmbiff’)
*DockappPanel: (Swallow (NoClose, UseOld) “wmweather” ‘Exec wmweather’)
*DockappPanel: (Swallow (NoClose, UseOld) “asmixer” ‘Exec asmixer’)

AddToFunc StartFunction

  • I Module FvwmButtons DockappPanel[/code]
    Now I’d like to create a key binding that I could use to raise this “DockappPanel” above application windows, and then use the same key binding again to lower the panel below application windows. Is this possible in fvwm? And if it is possible, what should I add into the fvwm config file to create such key binding?
DestroyFunc SomeLayerFunc
AddToFunc    SomeLayerFunc
+ I Next (SomeWindowName, Layer 6) Layer
+ I TestRc (NoMatch) Next (SomeWindowName) Layer 0 6

Key Foo A CM SomeLayerFunc

(I answer this one a hell of a lot.)

– Thomas Adam

I need some further advice, please. I’m pretty sure that the name of my “DockappPanel” window is DockappPanel and I’d like to use the key combination Control + Alt + P (where “P” stands for “panel”, so it’s easy to remember) for my key binding, but I haven’t yet figured out what I should substitute for “SomeLayerFunc” in your code example.

What I’ve tried so far is this:

[code]DestroyFunc SomeLayerFunc
AddToFunc SomeLayerFunc

  • I Next (DockappPanel, Layer 6) Layer
  • I TestRc (NoMatch) Next (DockappPanel) Layer 0 6

Key P A CM SomeLayerFunc[/code]
But hitting Control + Alt + P doesn’t do anything. :frowning:

Then something must be setting DockappPanel to use the style CirculateSkip. Either remove that, or add CirculateHit to the conditional command ‘Next’ in the above function.

– Thomas Adam

Indeed, I had added CirculateSkip to the style configuration of DockappPanel between my posts for some unknown reason. My bad entirely.

After removing CirculateSkip, the key binding works as intended. Thanks for your help! :slight_smile: