Re: FVWM: How to make window appear on multiple (but not all) desktops?

Hegel3DReloaded <[email protected]>
Newsgroups gmane.comp.window-managers.fvwm
Message-ID <H4YmXpa4ezdg_n_OW0MZ8gl6pRSATpkri8TlQdpChus9gINWAICLTpur2rlp8pEjav3DsA0vBUwdEA--BjzDfbu2lcti57OQEnjhczZ8qQ0=@protonmail.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.