On Wednesday, 26. February 2020 20:16, Stephen Talley <[email protected]> wrote:

> In my FVWM configuration, I can use either Sticky:
>
> # Show window on all desktops
> Style Emulator Sticky
>
> …or StartsOnDesk:
>
> # Show window on desktop 3 only
> Style Emulator StartsOnDesk 3
>
> But how can I make a window appear on, say, desktops 3 and 4, but not 0, 1, 
> or 2?
>
> Thanks,
>
> Stephen

In your case StickyAcrossDesks is not an option, since it doesn't have desk 
arguments.

You can help yourself with FvwmEvent module to observe desk changes. For 
example:

*FvwmEvent: Cmd
*FvwmEvent: new_desk f_ChangeDesk

And then write some handy function(s):

DestroyFunc f_ChangeDesk
AddToFunc f_ChangeDesk
+ I InfoStoreAdd current_desk $[desk.n]
+ I Test (EnvMatch infostore.current_desk 3) Next (Emulator) MoveToDesk
+ I Test (EnvMatch infostore.current_desk 4) Next (Emulator) MoveToDesk


--
Hegel3DReloaded
https://github.com/NsCDE/NsCDE


Reply via email to