2 .\" @(#)@PACKAGE@-@VERSION@ @RELDATELONG@
3 .TH FvwmProxy 1 "@RELDATELONG@ (@VERSION@)" Fvwm "Fvwm Modules"
6 FvwmProxy \- the fvwm proxy module
8 FvwmProxy is spawned by fvwm, so no command line invocation will work.
11 The FvwmProxy allows the user to locate and control windows obscured
12 by other windows by using small non-overlapping proxy windows.
13 The default capabilites include raising and lowering the proxied windows.
15 Using the sample configuration, pressing Alt-Tab cycles through the windows
16 and allows the use of assignable click actions on the proxies.
17 Releasing the Alt key deactivates the proxy windows.
18 By default, pressing the left or right mouse buttons on a proxy window
19 raises or lowers the associated proxied window respectively.
20 An additional mapping can have the proxies automatically appear by just
23 Proxy windows are always on top and try to center on the regular
25 A simple collision algorithm tweaks the positions of the proxy windows
26 to prevent them from overlapping.
29 The FvwmProxy program is original work by Jason Weber.
31 Copyright 2002, Jason Weber. No guarantees or warranties or anything
32 are provided or implied in any way whatsoever. Use this program at your
36 FvwmProxy can be invoked by inserting the line 'Module FvwmProxy' in
37 the .fvwm2rc file. This can be placed on a line by itself, if FvwmProxy
38 is to be spawned during fvwm's initialization, or can be bound to a
39 menu or mouse button or keystroke to invoke it later. Fvwm will search
40 directory specified in the ModulePath configuration option to attempt
43 .SH CONFIGURATION OPTIONS
45 .IP "*FvwmProxy: Colorset \fIn\fP"
46 Specifies the color theme for unselected proxy windows.
48 .IP "*FvwmProxy: SelectColorset \fIn\fP"
49 Specifies the color theme for the selected proxy window.
51 .IP "*FvwmProxy: IconifiedColorset \fIn\fP"
52 Specifies the color theme for proxy windows of iconified windows.
53 This is only meaningful in conjuction with the ProxyIconified option on.
55 .IP "*FvwmProxy: Font \fIfont\fP"
56 Specifies the font used for large proxy window text.
57 This usually contains the icon string and is nearly vertically centered
59 If there is no icon string, the title bar string is used.
60 If this text exceeds the width of the proxy, it is cropped on the right.
61 If no Font is specified, a default is used.
63 .IP "*FvwmProxy: SmallFont \fIfont\fP"
64 Specifies the font used for the auxillary proxy window text.
65 This usually contains the title bar string, but is omitted if it
66 is identical to the icon string and that text was not cropped.
67 The text is drawn close to the bottom of the proxy and should
68 probably be the smallest legible font available.
69 If this text exceeds the width of the proxy, it is cropped on the left.
70 If no SmallFont is specified, this text is never drawn.
72 .IP "*FvwmProxy: Width \fIw\fP"
73 Specifies the size in X of each proxy window. The default is 180.
75 .IP "*FvwmProxy: Height \fIh\fP"
76 Specifies the size in Y of each proxy window. The default is 60.
78 .IP "*FvwmProxy: Separation \fId\fP"
79 Specifies the minimum distance between proxy windows when adjusting
80 for collisions. The default is 10.
82 .IP "*FvwmProxy: ShowMiniIcons \fIbool\fP"
83 If true, proxy windows show the mini icon for the window they represent,
84 if it has a mini icon. The default is true.
86 .IP "*FvwmProxy: EnterSelect \fIbool\fP"
87 If true, a proxy is automatically selected when the mouse is moved
88 over the proxy, even if no mouse buttons are pressed.
91 .IP "*FvwmProxy: ProxyMove \fIbool\fP"
92 If true, moving a proxy window will move the window it represents.
93 Currently, the proxied window doesn't recognize snap effects during
94 this operation. The default is false.
96 .IP "*FvwmProxy: ProxyIconified \fIbool\fP"
97 If true, continue to proxy windows when they are iconified.
98 In addition, consider adding click actions that Iconify on and off,
99 such as on the middlemouse button. The default is false.
101 .IP "*FvwmProxy: Action \fImouseaction\fP \fIresponse\fP"
102 Tells FvwmProxy to do the specified \fIresponse\fP when the given
103 \fIaction\fP is done.
104 The currently supported mouse actions are: Click1, Click2, Click3 and so on,
105 representing mouse clicks with various buttons.
106 By default, the module supports 3 mouse buttons, but it can be
107 compiled to support more.
108 The default responses are Raise, Nop, and Lower for Click1, Click2, and Click3,
111 .IP "*FvwmProxy: Action Select \fIcommand\fP"
112 This selects an fvwm function to be called during a FvwmProxy Hide command
113 for the window whose proxy was selected.
114 The default is WindowListFunc. WindowListFunc is predefined by the
115 fvwm install. You can replace it, add to it,
116 or supply an independent function.
118 .IP "*FvwmProxy: Action Show \fIcommand\fP"
119 This selects an fvwm function to be called during a FvwmProxy Show command.
122 .IP "*FvwmProxy: Action Hide \fIcommand\fP"
123 This selects an fvwm function to be called during a FvwmProxy Hide command.
126 .IP "*FvwmProxy: Action Abort \fIcommand\fP"
127 This selects an fvwm function to be called during a FvwmProxy Abort command.
130 .IP "*FvwmProxy: Action Mark \fIcommand\fP"
131 This selects an fvwm function to be called on a window after it is marked.
134 .IP "*FvwmProxy: Action Unmark \fIcommand\fP"
135 This selects an fvwm function to be called on a marked window just after
136 another window gets the mark.
139 .IP "*FvwmProxy: Action ModifierRelease \fImodifiers\fP \fIcommand\fP"
140 This selects an fvwm function to be called while proxies are shown and
141 the specified modifiers are all released. The modifiers are specified
142 using the same syntax as in the Mouse command.
145 .IP "*FvwmProxy: Group \fIgroupname\fP \fIcommand\fP \fIpattern\fP"
146 For the given named group, adjust inclusion of the windows matching
148 The groupname is a string identifier used to associate windows.
149 The window pattern uses the same format as the Style command.
150 The supported commands are Include, SoftInclude, and Exclude.
151 Include and SoftInclude identifies a pattern to add windows
153 Exclude identifies pattern to counteract inclusion pattern
154 or auto-inclusion (see flags below).
155 All exclusion checks follow all inclusion checks.
156 Soft inclusion limits the windows in that pattern to only move
157 when an non-soft window in the group moves.
158 Moving or resizing these windows does not affect any other windows.
159 They are also immune to edge effects.
161 .IP "*FvwmProxy: Group \fIgroupname\fP \fIflag\fP
162 For the given named group, activate the given flag.
163 The supported flags are AutoInclude, AutoSoft, and IgnoreIDs.
164 All window grouping is normally checked to only group windows
165 that are in the same process or that have the same X11 client leader.
166 IgnoreIDs deactivates this mechanism.
167 AutoInclude automatically includes any window that matches
168 the same process or client leader, without having to name them specifically.
169 AutoSoft makes all AutoInclusions soft (see inclusion description above).
171 .IP "*FvwmProxy: SlotWidth \fIw\fP"
172 This specifies the width of the icons used in slots.
175 .IP "*FvwmProxy: SlotHeight \fIh\fP"
176 This specifies the height of the icons used in slots.
179 .IP "*FvwmProxy: SlotSpace \fId\fP"
180 This specifies the space between icons used in slots.
183 .IP "*FvwmProxy: GroupSlot \fIn\fP"
184 This specifies the first slot that represent a colored group.
185 Group slots don't need icons as the are drawn by predetermined means.
188 .IP "*FvwmProxy: GroupCount \fIn\fP"
189 This specifies the number of group slots.
192 .IP "*FvwmProxy: SlotStyle \fIn\fP \fIstyle\fP"
193 For non-group slots, this defines the appears of the indicated slot.
194 The style format matches ButtonStyle command.
195 The default is nothing.
197 .IP "*FvwmProxy: SlotAction \fIn\fP \fImouseaction\fP \fIresponse\fP"
198 For non-group slots, this defines the behavior of the indicated slot.
199 The mouse action and response is used the same as the FvwmProxy
200 Action configuration.
203 .IP "*FvwmProxy: UndoLimit \fIn\fP"
204 This specifies the number of entries in the undo buffer.
205 this limits how far back you can undo.
210 .IP "SendToModule FvwmProxy Show"
211 Activate proxy windows for all windows on the current desk that
212 do not use the WindowListSkip option.
213 If the desk is switched, new proxies are automatically generated.
215 .IP "SendToModule FvwmProxy Hide"
216 Deactivate all proxy windows.
217 If a proxy is selected (such as with the Next and Prev commands),
218 the Select Action is call on the window that the proxy represents.
219 The default action includes raising the window and
220 warping the mouse to a position over that window.
222 .IP "SendToModule FvwmProxy ShowToggle"
223 If shown, hide. If hidden, show.
225 .IP "SendToModule FvwmProxy Abort"
226 Deactivate all proxy windows.
227 This differs from the Hide command in that no action is taken
228 on any selected window.
230 .IP "SendToModule FvwmProxy Circulate \fIcommand\fP"
231 Tell FvwmProxy to run a conditional command and mark the result.
232 The imbedded command \fISendToModule FvwmProxy Mark\fP is automatically
233 appended after the optional condition, so supplying your own imbedded
234 command will probably fail.
235 An example argument to Circulate is
236 \fIScanForWindow East South (CurrentPage)\fP.
237 If the proxies aren't already shown (such as with the Show command),
238 any Circulate command will automatically show the proxies.
240 .IP "SendToModule FvwmProxy Next (obsolete)"
241 If a proxy window is selected, the next proxy is selected.
242 Windows with the WindowListSkip option are ignored.
243 The proxies are sorted left to right during the Show command.
244 If no proxy is currently selected, but a proxy on this desk was
245 selected on a recent show, that proxy is selected.
246 If no proxy on this desk was recently selected,
247 the leftmost proxy is used.
248 This nearly duplicates the functionality of
249 Circulate ScanForWindow East South (CurrentPage).
251 .IP "SendToModule FvwmProxy Prev (obsolete)"
252 If a proxy window is selected, the previous proxy is selected.
253 The starting point is the same as with the Next command, except
254 that the choice with no recent selection is the rightmost proxy.
255 This nearly duplicates the functionality of
256 Circulate ScanForWindow West North (CurrentPage).
258 .IP "SendToModule FvwmProxy SoftToggle"
259 Toggle the soft group inclusion setting for the selected window.
260 This setting is the same that can be activated using the SoftInclude
261 and AutoSoft commands inside the FvwmProxy Group configuration.
263 .IP "SendToModule FvwmProxy IsolateToggle"
264 Toggle the isolation setting for the selected window's group.
265 Isolated groups only allow one member to not be iconified at a time.
266 The members are also coerced to the same position and size,
267 constrained by their size increment.
269 .IP "SendToModule FvwmProxy PrevIsolated"
270 If focused on a member of a isolating group,
271 deiconify the member higher on list.
272 If no member is higher, deiconify the last member.
274 .IP "SendToModule FvwmProxy NextIsolated"
275 If focused on a member of a isolating group,
276 deiconify the member lower on list.
277 If no member is higher, deiconify the first member.
279 .IP "SendToModule FvwmProxy Undo"
280 Attempt to undo the last window move and/or resize.
282 .IP "SendToModule FvwmProxy Redo"
283 Attempt to redo the most recent Undo.
284 If another move or resize occurs since the previous undo,
285 the redo buffer will be cleared.
287 .SH SAMPLE CONFIGURATION
288 The following are excerpts from a .fvwm2rc file which describe
289 FvwmProxy initialization commands:
292 Key Tab A M SendToModule FvwmProxy Circulate \\
293 ScanForWindow East South (CurrentPage)
294 Key Tab A SM SendToModule FvwmProxy Circulate \\
295 ScanForWindow West North (CurrentPage)
297 *FvwmProxy: Action ModifierRelease M SendToModule FvwmProxy Hide
300 But Meta-Shift-Tab can be awkward, so Meta-Q may be a better alternative.
303 Key Q A M SendToModule FvwmProxy Circulate \\
304 ScanForWindow West North (CurrentPage)
308 You might consider adding !Sticky to the (CurrentPage) conditional if you
309 use Sticky for low-interactivity programs, like load meters and music players.
311 To have the proxies immediately pop up when you hold the Alt key, add
314 Key Meta_L A N SendToModule FvwmProxy Show
317 If that's too intrusive, you can assign Alt-Esc to switch the proxies
321 Key Escape A M SendToModule FvwmProxy ShowToggle
324 Some platforms have problems where general Alt key combinations becoming
325 otherwise dysfunctional after defining these mappings.
326 If this happens, it might be difficult to take full advantage of this module.
328 To have the mouse jump to the center instead of the upper left corner,
332 AddToFunc WindowListFunc
333 + I WarpToWindow 50 50
336 or just make your own list function from scratch, for example
339 DestroyFunc WindowListFunc
340 AddToFunc WindowListFunc
341 + I WindowId $[w.id] Raise
342 + I WindowId $[w.id] WarpToWindow 50 50
346 Note that the default configuration does not activate any Next/Prev operations
347 for Alt-Tab since that sequence is, by default, used by another module.
348 Adding appropriate key mappings to your .fvwm2rc will switch this
349 responsibility to FvwmProxy.
351 If you use ProxyIconified, you might consider adding Iconify actions.
354 AddToFunc WindowListFunc
355 + I WindowId $[w.id] Iconify Off
357 AddToFunc Raise-and-Deiconify
358 + I WindowId $[w.id] Raise
359 + I WindowId $[w.id] Iconify Off
361 *FvwmProxy: Action Click1 Raise-and-Deiconify
362 *FvwmProxy: Action Click2 Iconify
366 You can set up some basic slots fairly easily.
369 *FvwmProxy: GroupSlot 2
370 *FvwmProxy: GroupCount 5
372 *FvwmProxy: SlotStyle 1 MiniIcon
373 *FvwmProxy: SlotStyle 7 Pixmap "squeeze.xpm"
374 *FvwmProxy: SlotStyle 8 Pixmap "mini-up.xpm"
375 *FvwmProxy: SlotStyle 9 Pixmap "mini-bball.xpm"
376 *FvwmProxy: SlotStyle 10 Pixmap "mini-cross.xpm"
378 *FvwmProxy: SlotAction 1 Click1 Popup WindowMenu
379 *FvwmProxy: SlotAction 7 Click1 SendToModule FvwmProxy IsolateToggle
380 *FvwmProxy: SlotAction 8 Click1 SendToModule FvwmProxy SoftToggle
381 *FvwmProxy: SlotAction 9 Click1 Iconify
382 *FvwmProxy: SlotAction 10 Click1 Delete
385 In this example, WindowMenu is something you would have to define.
386 If your proxy width is too small, some slots can get cut off.
388 Undo and redo can be easily mapped to any keys.
391 Key Z A 3 SendToModule FvwmProxy Undo
392 Key R A 3 SendToModule FvwmProxy Redo
396 You can rotate through an isolated group using any keys.
397 For example, meta cursor-up and cursor-down could traverse the group.
400 Key Up A 3 SendToModule FvwmProxy PrevIsolated
401 Key Down A 3 SendToModule FvwmProxy NextIsolated
405 A somewhat impractical example of a group definition using GIMP
409 *FvwmProxy: Group "GIMP" Include "The GIMP"
410 *FvwmProxy: Group "GIMP" Include "Module Manager"
411 *FvwmProxy: Group "GIMP" SoftInclude "Unit Editor"
412 *FvwmProxy: Group "GIMP" AutoInclude
413 *FvwmProxy: Group "GIMP" AutoSoft
414 *FvwmProxy: Group "GIMP" Exclude "Preferences"
418 This sets up a hard attachment between the windows "The GIMP"
419 and "Module Manager".
420 The "Unit Editor" is also in the group, but only responds
421 to movement of one of the hard inclusions.
422 Any window in the same process or with the same client leader
423 is also associated, but they default to soft inclusion,
424 except "Preferences" which is explicitly excluded.
425 Note that in this case, the explicit soft inclusion of
426 "Unit Editor" is redundant with the combination of
427 AutoInclude and AutoSoft.
428 However, if AutoSoft was not specified, the explicit
429 SoftInclude would distinguish that pattern from the otherwise
430 hard inclusion under just AutoInclude.