Linux in a Nutshell, Third Edition
by Ellen Siever, Stephen Spainhour, Jessica P. Hekman, Stephen Figgins
Making the Same Window Appear on Every Page
A window that appears on every virtual screen page is called a sticky window because it seems to stick to the glass. Some windows are designated as sticky in the system.fvwm2rc file, among them xbiff, programs ending in lock (e.g., clock programs such as xclock and oclock), and all of the fvwm2 modules (because you need the button bar, Pager, etc., on every page).
If you want a window to appear on the desktop no matter what page you’re viewing, you need to specify that in your .fvwm2rc file. The specification requires you to use the Style variable, followed by the client’s name, and a hard-to-forget parameter, Sticky. The Style variable is used to set many different characteristics. Here are some lines you might see in a configuration file to establish that a window is sticky, among other things:
Style "xbiff" NoTitle, Sticky, WindowListSkip, ClickToFocus Style "*lock" NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus Style "Fvwm*" NoTitle, Sticky, WindowListSkip
Notice that the Style variable can recognize a wildcard character (*) to widen the scope of the definition. Fvwm* would encompass all fvwm2 modules.
Try adding the following line, which specifies that an application called xpostit will stick to the glass:
Style "xpostit" Sticky
Practically speaking, you probably also want to specify that xpostit uses click-to-type focus and doesn’t appear on the FvwmWinList, so this definition is better:
Style "xpostit" Sticky, WindowListSkip, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access