File: WindowList.xml

package info (click to toggle)
fvwm 1%3A2.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 15,968 kB
  • sloc: ansic: 145,836; xml: 17,096; perl: 7,237; sh: 5,100; makefile: 1,101; yacc: 688; lex: 187; sed: 11
file content (279 lines) | stat: -rw-r--r-- 10,469 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE part PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  "../docbook-xml/docbookx.dtd"
[
<!ENTITY % myents SYSTEM "../fvwm.ent" >
%myents;
]>

<!-- $Id$ -->

<section id='WindowList'>
<title>WindowList</title>

<cmdsynopsis>
	<command>WindowList</command
	><arg choice='opt'
		>(<replaceable>conditions</replaceable
	>)</arg
	><arg choice='opt'
		><replaceable>position</replaceable
	></arg
	><arg choice='opt'
		><replaceable>options</replaceable
	></arg
	><arg choice='opt'
		><replaceable>double-click-action</replaceable
	></arg>
</cmdsynopsis>


<para>Generates a pop-up menu (and pops it up) in which the title and
geometry of each of the windows currently on the desktop are
shown.</para>

<para>The format of the geometry part is:
<replaceable>desk</replaceable>(<replaceable>layer</replaceable>): <replaceable>x-geometry</replaceable> <replaceable>sticky</replaceable>,
where
<replaceable>desk</replaceable> and <replaceable>layer</replaceable>
are the corresponding numbers and
<replaceable>sticky</replaceable>
is empty or a capital S.  The geometry of iconified windows is
shown in parentheses.  Selecting an item from the window list
pop-up menu causes the interpreted function "WindowListFunc" to be
run with the window id of that window passed in as $0. The default
"WindowListFunc" looks like this:</para>

<programlisting>
<fvwmref cmd="AddToFunc"/> WindowListFunc
+ I <fvwmref cmd="Iconify"/> off
+ I <fvwmref cmd="FlipFocus"/>
+ I <fvwmref cmd="Raise"/>
+ I <fvwmref cmd="WarpToWindow"/> 5p 5p
</programlisting>

<para>You can destroy the built-in "WindowListFunc" and create your own
if these defaults do not suit you.</para>

<para>The window list menu uses the "WindowList" menu style if it is
defined (see
<fvwmref cmd="MenuStyle"/>
command).  Otherwise the default menu style is used.  To switch
back to the default menu style, issue the command</para>

<programlisting>
<fvwmref cmd="DestroyMenuStyle"/> WindowList
</programlisting>

<para>Example:</para>

<programlisting>
<fvwmref cmd="MenuStyle"/> WindowList <fvwmref cmd="MenuStyle" opt="SelectOnRelease"/> Meta_L
</programlisting>

<para>The
<replaceable>conditions</replaceable>
can be used to exclude certain windows from the window
list. Please refer to the
<fvwmref cmd="Current"/>
command for details.  Only windows that match the given conditions
are displayed in the window list.  The
<replaceable>options</replaceable>
below work vice versa: windows that would otherwise not be
included in the window list can be selected with them.  The
<replaceable>conditions</replaceable>
always override the
<replaceable>options</replaceable>.</para>


<para>The
<replaceable>position</replaceable>
arguments are the same as for
<fvwmref cmd="Menu"/>.
The command
<replaceable>double-click-action</replaceable>
is invoked if the user double-clicks (or hits the key rapidly
twice if the menu is bound to a key) when bringing the window
list.  The
<replaceable>double-click-action</replaceable>
must be quoted if it consists of more than one word.</para>

<para>The
<replaceable>double-click-action</replaceable>
is useful to define a default window if you have bound the window
list to a key (or button) like this:</para>

<programlisting>
# Here we call an existing function, but
# it may be different.  See the default
# WindowListFunc definition earlier in this
# man page.
<fvwmref cmd="AddToFunc"/> SwitchToWindow
+ I WindowListFunc

<fvwmref cmd="Key"/> Tab A M WindowList "Prev SwitchToWindow"
</programlisting>

<para>Hitting
<keysym>Alt-Tab</keysym>
once it brings up the window list, if you hit it twice the focus
is flipped between the current and the last focused window.  With
the proper
<fvwmref cmd="MenuStyle" opt="SelectOnRelease"/>
menu style (see example above) a window is selected as soon as you
release the
<keysym>Alt</keysym>
key.</para>

<para>The
<replaceable>options</replaceable>
passed to WindowList are separated by commas and can be
<emphasis remap='I'>Geometry</emphasis> / <emphasis remap='I'>NoGeometry</emphasis> / <emphasis remap='I'>NoGeometryWithInfo</emphasis>,
<emphasis remap='I'>NoDeskNum,</emphasis>
<emphasis remap='I'>NoLayer,</emphasis>
<emphasis remap='I'>NoNumInDeskTitle</emphasis>,
<emphasis remap='I'>NoCurrentDeskTitle</emphasis>,
<emphasis remap='I'>MaxLabelWidth width</emphasis>,
<emphasis remap='I'>TitleForAllDesks</emphasis>,
<emphasis remap='I'>Function funcname</emphasis>,
<emphasis remap='I'>Desk desknum</emphasis>,
<emphasis remap='I'>CurrentDesk</emphasis>,
<emphasis remap='I'>NoIcons</emphasis> / <emphasis remap='I'>Icons</emphasis> / <emphasis remap='I'>OnlyIcons</emphasis>,
<emphasis remap='I'>NoNormal</emphasis> / <emphasis remap='I'>Normal</emphasis> / <emphasis remap='I'>OnlyNormal</emphasis>,
<emphasis remap='I'>NoSticky</emphasis> / <emphasis remap='I'>Sticky</emphasis> / <emphasis remap='I'>OnlySticky</emphasis>,
<emphasis remap='I'>NoStickyAcrossPages</emphasis> / <emphasis remap='I'>StickyAcrossPages</emphasis> / <emphasis remap='I'>OnlyStickyAcrossPages</emphasis>,
<emphasis remap='I'>NoStickyAcrossDesks</emphasis> / <emphasis remap='I'>StickyAcrossDesks</emphasis> / <emphasis remap='I'>OnlyStickyAcrossDesks</emphasis>,
<emphasis remap='I'>NoOnTop</emphasis> / <emphasis remap='I'>OnTop</emphasis> / <emphasis remap='I'>OnlyOnTop</emphasis>,
<emphasis remap='I'>NoOnBottom</emphasis> / <emphasis remap='I'>OnBottom</emphasis> / <emphasis remap='I'>OnlyOnBottom</emphasis>,
<emphasis remap='I'>Layer m [n]</emphasis>,
<emphasis remap='I'>UseSkipList</emphasis> / <emphasis remap='I'>OnlySkipList</emphasis>,
<emphasis remap='I'>NoDeskSort</emphasis>,
<emphasis remap='I'>ReverseOrder</emphasis>,
<emphasis remap='I'>CurrentAtEnd</emphasis>,
<emphasis remap='I'>IconifiedAtEnd</emphasis>,
<emphasis remap='I'>UseIconName</emphasis>,
<emphasis remap='I'>Alphabetic</emphasis> / <emphasis remap='I'>NotAlphabetic</emphasis>,
<emphasis remap='I'>SortByResource</emphasis>,
<emphasis remap='I'>SortByClass</emphasis>,
<emphasis remap='I'>NoHotkeys</emphasis>,
<emphasis remap='I'>SelectOnRelease</emphasis>.</para>

<para>(Note - normal means not iconic, sticky, or on top)</para>

<para>With the
<fvwmopt cmd="WindowList" opt="SortByResource"/>
option windows are alphabetically sorted first by resource class,
then by resource name and then by window name (or icon name if
<fvwmopt cmd="WindowList" opt="UseIconName"/>
is specified).
<fvwmopt cmd="WindowList" opt="ReverseOrder"/>
also works in the expected manner.</para>

<para>With the
<fvwmopt cmd="WindowList" opt="SortByClass"/>
option windows are sorted just like with
<emphasis remap='I'>SortByResource</emphasis>,
but the resource name is not taken into account, only the resource
class.</para>

<para>The
<fvwmopt cmd="WindowList" opt="SelectOnRelease"/>
option works exactly like the
<fvwmref cmd="MenuStyle"/>
option with the same name, but overrides the option given in a
menu style.  By default, this option is set to the left
<keysym>Alt</keysym>
key.  To switch it off, use
<emphasis remap='I'>SelectOnRelease</emphasis>
without a key name.</para>

<para>If you pass in a function via
<fvwmref cmd="Function"/> funcname,
it is called within a window context of the selected window:</para>

<programlisting>
<fvwmref cmd="AddToFunc"/> IFunc I <fvwmref cmd="Iconify"/> toggle
WindowList <fvwmref cmd="Function"/> IFunc, NoSticky, CurrentDesk, NoIcons
</programlisting>

<para>If you use the
<fvwmopt cmd="WindowList" opt="Layer"/>
<replaceable>m</replaceable>
<optional><replaceable>n</replaceable></optional>
option, only windows in layers between m and n are displayed. n
defaults to m.  With the
<emphasis remap='I'>ReverseOrder</emphasis>
option the order of the windows in the list is reversed.</para>

<para>With the
<fvwmopt cmd="WindowList" opt="CurrentAtEnd"/>
option the currently focused window (if any) is shown at the
bottom of the list.  This is mostly intended for simulating the
Alt-Tab behavior in another GUI.</para>

<para>
<fvwmopt cmd="WindowList" opt="IconifiedAtEnd"/>
makes iconified windows be moved to the end of the list.  This is
also from another GUI.</para>

<para>The
<fvwmopt cmd="WindowList" opt="NoGeometry"/>
option causes fvwm to not display the geometries as well as
the separators which indicate the different desktops.
<fvwmopt cmd="WindowList" opt="NoGeometryWithInfo"/>
removes the geometries, but keep the desktop information
and indicates iconic windows.
<fvwmopt cmd="WindowList" opt="NoDeskNum"/>
causes fvwm to not display the desktop number in the geometry
or before the window title with the
<fvwmopt cmd="WindowList" opt="NoGeometryWithInfo"/>
option.
<fvwmopt cmd="WindowList" opt="NoNumInDeskTitle"/>
is only useful if a desktop name is defined with the
<fvwmref cmd="DesktopName"/>
command. It causes fvwm to not display the desktop number before
the desktop name.  By default, the WindowList menu have a title
which indicates the current desk or the selected desktop if the
<fvwmopt cmd="WindowList" opt="Desk"/>
condition is used. The
<fvwmopt cmd="WindowList" opt="NoCurrentDeskTitle"/>
option removes this title.
<fvwmopt cmd="WindowList" opt="TitleForAllDesks"/>
causes fvwm to add a menu title with the desk name and/or number
before each group of windows on the same desk.
With
<fvwmopt cmd="WindowList" opt="NoLayer"/>,
the layer of the window is not displayed.  The options
<fvwmopt cmd="WindowList" opt="ShowPage"/>,
<fvwmopt cmd="WindowList" opt="ShowPageX"/> and
<fvwmopt cmd="WindowList" opt="ShowPageY"/>
enable displaying the page of the window rounded multiples of the
display size.
With
<fvwmopt cmd="WindowList" opt="ShowScreen"/>,
the window's Xinerama screen number is displayed.</para>

<para>The
<fvwmopt cmd="WindowList" opt="MaxLabelWidth"/>
option takes the number of characters to print as its argument.
No more than that many characters of the window name are visible.</para>

<para>If you wanted to use the
<emphasis remap='B'>WindowList</emphasis>
as an icon manager, you could invoke the following:</para>

<programlisting>
WindowList OnlyIcons, Sticky, OnTop, Geometry
</programlisting>

<para>(Note - the
<emphasis remap='I'>Only</emphasis>
options essentially wipe out all other ones... but the
<fvwmopt cmd="WindowList" opt="OnlyListSkip"/>
option which just causes
<emphasis remap='B'>WindowList</emphasis>
to only consider the windows with
<fvwmref cmd="Style" opt="WindowListSkip"/>
style.)</para>

</section>