'\" t .\" Title: FvwmIconMan .\" Author: [see the "AUTHOR(S)" section] .\" Generator: Asciidoctor 2.0.20 .\" Date: 2024-03-09 .\" Manual: Fvwm Modules .\" Source: \ \& .\" Language: English .\" .TH "FVWMICONMAN" "1" "2024-03-09" "\ \&" "Fvwm Modules" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 .nh .ad l .de URL \fI\\$2\fP <\\$1>\\$3 .. .als MTO URL .if \n[.g] \{\ . mso www.tmac . am URL . ad l . . . am MTO . ad l . . . LINKSTYLE blue R < > .\} .SH "NAME" FvwmIconMan \- an fvwm icon manager .SH "SYNOPSIS" .sp FvwmIconMan is spawned by fvwm, so no command line invocation will work. .SH "DESCRIPTION" .sp FvwmIconMan is an icon manager modeled after the TWM icon manager. The user may have multiple icon managers, each of which armed with a list of window types which it manages. For example, the user may have one manager which lists only emacs windows, and another which lists everything else. You may also specify what resolution each icon manager uses, for example, one icon manager may manage windows on all desks, and another may manage only those on the current desk, page or screen. FvwmIconMan can display the miniature icons provided by fvwm for its managed windows. The managers may have a maximum number of columns (and so grows vertically), a maximum number of rows (and then grows horizontally), or stay at a fixed size, and adjust the size of the window buttons to fit (think win95\(cqs Taskbar). And when support is compiled in for the X Shape extension, then the manager windows may be shaped. .sp You can specify actions to be run when mouse, or key events are received. For example, you could bind the first mouse button to iconify the selected window, and make bindings for the arrow keys to navigate the manager window without the mouse. .sp FvwmIconMan can be set to display which window currently has the keyboard focus, and by binding the select event (see below) to the fvwm Focus function, you can emulate the TWM icon manager\(cqs behavior. .SH "INITIALIZATION" .sp During initialization, FvwmIconMan searches though the fvwm configuration file for the options which are described below. It is highly recommended that you make FvwmIconMan be a sticky window. And if you want to make use of the followfocus option, and/or binding an action to Focus, then you should make FvwmIconMan clicktofocus. Also, when using the Shape option, it\(cqs recommended that the FvwmIconMan window not be decorated at all by fvwm. .SH "INVOCATION" .sp FvwmIconMan can be invoked by inserting the line \*(AqModule FvwmIconMan\*(Aq in the .fvwm2rc file. If FvwmIconMan is to be spawned during fvwm\(cqs initialization, then this line should be placed in the StartFunction declarations, or it can be bound to a menu, mouse button, or keystroke to invoke it later. .sp If you wish to run FvwmIconMan in a transient mode, such as with the built in window list, then pass "\-Transient" as an argument. The invocation "Module FvwmIconMan \-Transient" will do nicely. In this mode, FvwmIconMan will pop up one manager window directly under the cursor. When the mouse button is released, it will execute the appropriate action, and then exit. Things are somewhat complicated by the fact that you can specify that FvwmIconMan creates multiple manager windows, behavior which is unsuitable when running transiently. So, when running transiently, FvwmIconMan will only create one manager window. Use the manager id \*(Aqtransient\*(Aq to specify options for this manager window. .sp FvwmIconMan may accept an alias name as an argument. For example, "Module FvwmIconMan FvwmIconMan\-Variant2". .SH "CONFIGURATION OPTIONS REFERENCE CHART" .sp FvwmIconMan has acquired quite a few options. I assume others share my dislike of paging though a long man page, so here is a terse reference chart describing the available options. They are described in more detail in the next section. .sp .if n .RS 4 .nf .fam C Name Description Default NumManagers number of managers 1 Action binds command to event Mouse 0 N sendcommand Iconify Background default background gray ButtonGeometry size of button in pixels Colorset default colorset DontShow list of windows to ignore DrawIcons use mini icons false FocusAndSelectButton flat grey black FocusAndSelectColorset FocusButton style for focused buttons up grey black FocusColorset FollowFocus show which win has focus false Font 8x13 Foreground default text color white Format describes button label "%c: %i" IconName manager icon name FvwmIconMan IconAndSelectButton up black grey IconAndSelectColorset IconButton style for icon buttons up black grey IconColorset ManagerGeometry size of manager in buttons 0x1 MaxButtonWidth max width of a button MaxButtonWidthByColumns NoIconAction animate iconification NOP PlainButton style for normal buttons up black grey PlainColorset ReliefThickness size of button relief 2 Resolution window filters desk page Reverse normal, icon or none none SelectButton style for selected buttons flat black grey SelectColorset Shape use shape extension false Show list of windows to show ShowOnlyIcons only icons visible false ShowNoIcons icons are not displayed false ShowTransient transient windows visible false ShowOnlyFocused only focused visible false Sort keep managers sorted name SortWeight weight for sorting Tips Tool Tips mode none TipsDelays Tool Tips mapping delays 1000 300 TipsFont Font for Tool Tips default fvwm font TipsColorset Tool Tips Colorset 0 TipsFormat describes Tips label the Format value TipsBorderWidth Tool Tips border size 1 TipsPlacement Tips placement vs button updown TipsJustification Tips Just vs button leftup TipsOffsets Tips placement Offsets 3 2 Title manager title FvwmIconMan TitleButton style for title button raisededge black grey TitleColorset UseWinList honor WinListSkip? true .fam .fi .if n .RE .SH "CONFIGURATION OPTIONS" .sp With the exception of the nummanagers option, all of the options may be defined on a per\-manager basis. So, for example, the user may have his emacs manager with a red foreground, and his xterm manager with a blue one. A configuration line may therefore have one of two forms: .sp *FvwmIconMan: OptionName OptionValue .RS 4 To specify that the \fIOptionName\fP takes the value \fIOptionValue\fP for all managers. .RE .sp *FvwmIconMan: ManagerId OptionName OptionValue .RS 4 To specify that the option \fIOptionName\fP takes the value \fIOptionValue\fP for manager \fIManagerId\fP. \fIManagerId\fP may either be a positive integer, or the string "transient". An integer id refers to managers which FvwmIconMan creates when running normally, and an id of "transient" refers to the single manager which FvwmIconMan creates when running transiently. .RE .sp The old syntax, that uses an asterisk instead of white spaces before \fIManagerId\fP and \fIOptionName\fP, is supported too, but it is obsolete now. .sp The following options may be specified: .sp *FvwmIconMan: NumManagers num .RS 4 \fInum\fP is a positive integer specifying the total number of icon managers. Since FvwmIconMan would like to know how many managers there are before handling any manager specific options, this should come first. The default is 1. .RE .sp *FvwmIconMan: [id] Action type binding .RS 4 Binds an FvwmIconMan command to an event. \fIType\fP may be one of the values: Key, Mouse, or Select. Actions are described in the following section ACTIONS. .RE .sp *FvwmIconMan: [id] Background background .RS 4 Specifies the default background color. .RE .sp *FvwmIconMan: [id] ButtonGeometry geometry .RS 4 Specifies the initial geometry of an individual button in pixels. If the specified height is 0, then the button height is determined from the font size. X and Y coordinates are ignored. .RE .sp *FvwmIconMan: [id] Colorset colorset .RS 4 The default colorset used. Overrides background and foreground. .RE .sp *FvwmIconMan: [id] DrawIcons value .RS 4 If your version of fvwm is capable of using mini icons, then this option determines if FvwmIconMan displays the mini icons. Otherwise, it generates an error message. "true" means that mini icons are shown for iconified windows, "false" that mini icons are never shown, and "always" that mini icons are shown for all windows. .RE .sp *FvwmIconMan: [id] FocusAndSelectButton style [forecolor backcolor] .RS 4 Same as the plainbutton option, but specifies the look of buttons which are both selected, and have the keyboard focus. .RE .sp *FvwmIconMan: [id] FocusAndSelectColorset colorset .RS 4 Works like focusandselectbutton but uses colorsets instead. The style setting can still only be applied with focusandselectbutton. .RE .sp *FvwmIconMan: [id] FocusButton style [forecolor backcolor] .RS 4 Same as the plainbutton option, but specifies the look of buttons whose windows have the keyboard focus. .RE .sp *FvwmIconMan: [id] FocusColorset colorset .RS 4 Works like focusbutton but uses colorsets instead. The style setting can still only be applied with focusbutton. .RE .sp *FvwmIconMan: [id] FollowFocus boolean .RS 4 If \fItrue\fP, then the button appearance reflects which window currently has focus. Default is false. .RE .sp *FvwmIconMan: [id] Font font .RS 4 Specifies the font to be used for labeling the buttons. The default is 8x13. .RE .sp *FvwmIconMan: [id] Foreground foreground .RS 4 Specifies the default foreground color. .RE .sp *FvwmIconMan: [id] Format formatstring .RS 4 A printf like format string which describes the string to be printed in the manager window for each managed window. Possible flags are: %t, %i, %c, and %r for the window\(cqs title, icon title, class, or resource name, respectively. The default is "%c: %i". \fBWarning\fP: m4 reserves the word \fIformat\fP, so if you use m4, take appropriate action. .RE .sp *FvwmIconMan: [id] IconName iconstring .RS 4 Specifies the window icon name for that manager window. \fIIconstring\fP may either be a single word, or a string enclosed in quotes. The default is "FvwmIconMan". .RE .sp *FvwmIconMan: [id] IconAndSelectButton style [forecolor backcolor] .RS 4 Same as the plainbutton option, but specifies the look of buttons whose windows are iconified and the button is selected. .RE .sp *FvwmIconMan: [id] IconButton style [forecolor backcolor] .RS 4 Same as the plainbutton option, but specifies the look of buttons whose windows are iconified. .RE .sp *FvwmIconMan: [id] IconAndSelectColorset colorset .RS 4 Works like IconAndSelectButton but uses colorsets instead. The style setting can still only be applied with iconbutton. .RE .sp *FvwmIconMan: [id] IconColorset colorset .RS 4 Works like iconbutton but uses colorsets instead. The style setting can still only be applied with iconbutton. .RE .sp *FvwmIconMan: [id] ManagerGeometry geometry .RS 4 Specifies the initial geometry of the manager, in units of buttons. If \fIheight\fP is 0, then the manager will use \fIwidth\fP columns, and will grow vertically once it has more than \fIwidth\fP windows. Likewise, if \fIwidth\fP is 0, it will use \fIheight\fP rows, and grow horizontally. If both are nonzero, then the manager window will be exactly that size, and stay that way. As columns are created, the buttons will narrow to accommodate. If the geometry is specified with a negative y coordinate, then the window manager will grow upwards. Otherwise, it will grow downwards. .RE .sp *FvwmIconMan: [id] MaxButtonWidth width .RS 4 Defines a maximum for the width of a button (in pixels). By default there is no maximum. A value of 0 resets the default. The maximum is only used with a non growing manager (the ManagerGeometry option specifies non zero width and height). .RE .sp *FvwmIconMan: [id] MaxButtonWidthByColumns col .RS 4 This is another way to set the button width. col is the number of columns of icons. The button width is determined by dividing the total width of FvwmIconMan by the number of columns. For example if the width of FvwmIconMan manager is 1024, MaxButtonWidthByColumns is 4 then MaxButtonWidth is 256. This is useful when you do not know, at config time, the width of the manager, for example, for a swallowed FvwmIconMan. .RE .sp *FvwmIconMan: [id] NoIconAction action .RS 4 Tells FvwmIconMan to do \fIaction\fP when a NoIcon style window is iconified or de\-iconified. Relevant coordinates are appended to \fIaction\fP so that the icon can be traced to an FvwmIconMan button. An example action is "*FvwwmIconMan: NoIconAction SendToModule FvwmAnimate animate". A blank or null action turns this feature off. .RE .sp *FvwmIconMan: [id] PlainButton style [forecolor backcolor] .RS 4 Specifies how normal buttons look. \fIstyle\fP may be one of \fIflat\fP, \fIup\fP, \fIdown\fP, \fIraisededge\fP, or \fIsunkedge\fP, and describes how the button is drawn. The color options are both optional, and if not set, then the default colors are used. If on a monochrome screen, then the \fIstyle\fP option is ignored, but must still be set. .RE .sp *FvwmIconMan: [id] PlainColorset colorset .RS 4 Works like plainbutton but uses colorsets instead. The style setting can still only be applied with plainbutton. .RE .sp *FvwmIconMan: [id] ReliefThickness num .RS 4 \fInum\fP is an integer specifying the number of pixels thick that the relief at the edge of non\-flat buttons should be. Setting this to 0 will produce flat buttons, as if the values for \fIFocusAndSelectButton\fP, \fIFocusButton\fP, \fIIconAndSelectButton\fP, \fIIconButton\fP, \fIPlainButton\fP, \fISelectButton\fP, and \fITitleButton\fP were all set to \fIflat\fP. If \fInum\fP is negative, the button will be inverted as if you had used \fIReverse\fP for all classes. .RE .sp *FvwmIconMan: [id] Resolution [\fIfilter(s)\fP] .RS 4 Specifies a list of \fIfilters\fP, separated by spaces, that configure which windows are displayed. If no filters are given, then all windows of the appropriate type are shown (see the show and dontshow options below). Each \fIfilter\fP then limits the windows that are displayed and may take one of the following values: desk, page, screen, !desk, !page, !screen, or invert. \fIdesk\fP only shows windows on the current desk, and \fIpage\fP only shows windows on the current page. \fI!desk\fP and \fI!page\fP only show windows not on the current desk or page respectively. \fIinvert\fP reverses the filter displaying the windows that did not match. .sp Notes: \fIpage\fP and \fIdesk\fP are independent. If the only filter is \fIpage\fP, then you will see windows on the current page on all desks. To only see windows on the current page and desk (the default) you need both filters, \*(Aqdesk page\*(Aq. You can only have one of desk/!desk, page/!page, or screen/!screen, the last one issued take precedence. The invert filter reverses the whole filter so \*(Aqinvert desk page\*(Aq is not the same as \*(Aq!desk !page\*(Aq. Sticky windows are visible on all pages and desks, so they match all page and desk filters, but won\(cqt match the inverted filter. .sp The filters can take additional parameters to state which desk, page, or screen to show (or not show). \fI[!]desk [n]\fP can take the desk number, which will only show windows (not) on the stated desk. \fI[!]page [x] [y]\fP can take the horizontal, \fIx\fP, and vertical, \fIy\fP, page numbers, which will only show windows (not) on the stated page. .sp \fI[!]screen [S]\fP shows windows (not) on monitor \fIS\fP, which can be: .RS 3 .ll -.6i .sp \fINAME\fP: The "NAME" of the specific RandR monitor. .br .RE .ll .RS 3 .ll -.6i .sp \fIc\fP: The current RandR monitor (containing the pointer) .br .RE .ll .RS 3 .ll -.6i .sp \fIp\fP: The primary RandR monitor .br .RE .ll .RS 3 .ll -.6i .sp \fIg\fP: The global monitor .br .RE .ll .sp Since all windows are on the global monitor, \fIscreen g\fP effectively does nothing. \fIc\fP is the current monitor at the time resolution is issued, and once set will not change. This filter is best used with a RandR \fINAME\fP. .sp This configuration line is respected when FvwmIconMan is running as well, the resolution is changed dynamically when sent to fvwm. .RE .sp *FvwmIconMan: [id] Reverse class .RS 4 Causes certain classes of buttons to have their relief lines reversed so that up and down styles are reversed. This has no affect on flat buttons. The class can be icon, normal or none. The default is none. .RE .sp *FvwmIconMan: [id] SelectButton style [forecolor backcolor] .RS 4 Same as the plainbutton option, but specifies the look of buttons when the mouse is over them. .RE .sp *FvwmIconMan: [id] SelectColorset colorset .RS 4 Works like selectbutton but uses colorsets instead. The style setting can still only be applied with selectbutton. .RE .sp *FvwmIconMan: [id] Shape boolean .RS 4 If \fITrue\fP, then use make the window shaped. Probably only useful if you have multiple columns or rows. If FvwmIconMan wasn\(cqt compiled to support the Shape extension, this generates an error message. When using shaped windows, it\(cqs recommended that a fvwm style is made for FvwmIconMan that has no borders. Otherwise, fvwm will get confused. .RE .sp *FvwmIconMan: [id] Sort value .RS 4 If \fIname\fP, then the manager list is sorted by name. If \fInamewithcase\fP, then it is sorted by name sensitive to case. If \fIid\fP, then the manager list is sorted by the window id, which never changes after the window is created. If \fIweighted\fP, then the manager list is sorted by weight (see the description of \fIsortweight\fP below). Or it can be set to \fInone\fP, which results in no sorting. Default is \fIname\fP. .RE .sp *FvwmIconMan: [id] SortWeight weight pattern\-list .RS 4 Assigns the specified \fIweight\fP to windows that match \fIpattern\-list\fP. The list is made up of patterns of the form \fItype=pattern\fP, where type is one of \fIclass\fP, \fIresource\fP, \fItitle\fP, or \fIicon\fP, and pattern is an expression of the same format used in the fvwm style command (minimalistic shell pattern matching). Multiple sort weights can be given. Each window is matched against the list of sort weights, in order, and is given the weight from the first match. Lower\-weighted windows are placed first in the manager list. For example: .sp .if n .RS 4 .nf .fam C *FvwmIconMan: Sort weighted *FvwmIconMan: SortWeight 1 class=XTerm title=special* *FvwmIconMan: SortWeight 10 class=XTerm *FvwmIconMan: SortWeight 5 .fam .fi .if n .RE .sp In this example, xterm windows whose titles start with "special" (weight 1) are listed first, followed by everything but other xterms (weight 5), and the other xterms (weight 10) are listed last. If no default weight (empty pattern list) is given, the default weight is 0. Only relevant if the sort type is set to \fIweighted\fP. .RE .sp *FvwmIconMan: [id] Title title\-string .RS 4 Specifies the window title string for that manager window. \fITitlestring\fP may either be a single word, or a string enclosed in quotes. The default is "FvwmIconMan". This will be drawn in the title bar of the manager window, if any, and in the title button, which is the button drawn when the manager is empty. .RE .sp *FvwmIconMan: [id] TitleButton style [forecolor backcolor] .RS 4 Same as the plainbutton option, but specifies the look of the title button (the button drawn when the manager is empty). The manager\(cqs title is drawn in the title button. .RE .sp *FvwmIconMan: [id] UseWinList boolean .RS 4 If \fItrue\fP, then honor the WinListSkip style flag. Otherwise, all windows are subject to possible management according to the show and dontshow lists. .RE .sp The two following options control which windows get handled by which managers. A manager can get two lists, one of windows to show, and one of windows to ignore. If only the \fIshow\fP list is given, then that manager will show only the windows in the list. If only the \fIDontShow\fP list is given, then the manager will show all windows except those in the list. If both lists are given, then a window will be shown if it is not in the \fIDontShow\fP list, and in the \fIShow\fP list. And finally, if neither list is given, then the manager will handle all windows. Each list is made up of patterns of the form \fItype=pattern\fP, where type is one of \fIclass\fP, \fIresource\fP, \fItitle\fP, or \fIicon\fP, and pattern is an expression of the same format used in the fvwm style command (minimalistic shell pattern matching). Quotes around the pattern will be taken as part of the expression. If a window could be handled by more than one manager, then the manager with the lowest id gets it. .sp *FvwmIconMan: [id] Show pattern list .RS 4 If a window matches one of the patterns in the list, then it may be handled by this manager. .RE .sp *FvwmIconMan: [id] DontShow pattern list .RS 4 If a window matches one of the patterns in the list, then it may not be handled by this manager. .RE .sp *FvwmIconMan: [id] ShowTransient boolean .RS 4 Show transient windows in the list (default false). .RE .sp *FvwmIconMan: [id] ShowOnlyIcons boolean .RS 4 Only iconified windows are shown if \fIboolean\fP is true. .RE .sp *FvwmIconMan: [id] ShowNoIcons boolean .RS 4 Only windows that are not iconified are shown if \fIboolean\fP is true. .RE .sp *FvwmIconMan: [id] ShowOnlyFocused boolean .RS 4 Only window with the focus is shown if \fIboolean\fP is true. .RE .sp The following two options control tips. .sp *FvwmIconMan: [id] Tips value .RS 4 where \fIvalue\fP can be always, needed or false. Default is false, no tips are displayed. With always, tips are enabled. With needed, a tip is displayed only if either the button string is truncated or the tip string is not equal to the button string. This configuration line is respected when FvwmIconMan is running as well. .RE .sp *FvwmIconMan: [id] TipsDelays delay [mappeddelay] .RS 4 where \fIdelay\fP and \fImappeddelay\fP are time out values in milliseconds. If no \fImappeddelay\fP is given \fIdelay\fP is assumed. Default is 1000 300. When the cursor is on a button, FvwmIconMan wait \fIdelay\fP milliseconds before displaying the tip. In the case where a tip is already mapped and the cursor goes to another button, FvwmIconMan waits \fImappeddelay\fP milliseconds before displaying the new tip. .RE .sp *FvwmIconMan: [id] TipsFont fontname .RS 4 Specifies the font to be used for tips. Default is the default fvwm font. .RE .sp *FvwmIconMan: [id] TipsColorset colorset .RS 4 Specifies the colors for tips window. Default is colorset 0. .RE .sp *FvwmIconMan: [id] TipsFormat formatstring .RS 4 Similar to the Format option but for the tips window. The default is the format string from the Format option. .RE .sp *FvwmIconMan: [id] TipsBorderWidth pixels .RS 4 Specifies the border width (in pixels) of the tips window. Default is 1. .RE .sp *FvwmIconMan: [id] TipsPlacement value .RS 4 where \fIvalue\fP can be up, down, right, left, updown or leftright. This value specifies the position of the tips window relative to its button. Default is updown where buttons on the top half of the screen get tips below the button, otherwise the tips are above the button. .RE .sp *FvwmIconMan: [id] TipsJustification value .RS 4 where \fIvalue\fP can be leftup, rightdown or center. Specifies the justification (direction) of the tips window relative to its button after the tips window has been placed. Default is leftup which means that if a tip is placed above or below its button, then the left border of the tip and of the button are aligned. If the tip is placed on the left or on the right of its button, leftup aligns the top borders. rightdown and center work like leftup but in different directions. The alignment is adjusted by the TipsOffset option. See next option. .RE .sp *FvwmIconMan: [id] TipsOffsets placementoffset justoffset .RS 4 where \fIplacementoffset\fP and \fIjustoffset\fP are offsets in pixels for the TipsPlacement and TipsJustification configuration option. Default is 3 2. .RE .SH "ACTIONS" .sp Actions are commands which may be bound to an event of the type: a key press, a mouse click, or the mouse entering a window manager button \- denoted by the action types \fIKey\fP, \fIMouse\fP, and \fISelect\fP. .sp Normally, actions bound to a mouse click are executed when the button is pressed. In transient mode, the action is executed when the button is released, since it is assumed that FvwmIconMan was bound to some mouse event. A tip/warning: FvwmIconMan still keeps track of the mouse button and any modifier keys in this case, so if you bind FvwmIconMan to say, meta\-button3, then it would be wise to ensure that the action you want to execute will be executed when the meta\-button3 event occurs (which would be the button release, assuming you kept your finger on the meta key). .sp The syntax for actions are: .sp Key actions: Key Keysym Modifiers FunctionList .RS 4 \fIKeysym\fP and \fIModifiers\fP are exactly the same as for the fvwm \fIKey\fP command. .RE .sp Mouse actions: Mouse Button Modifiers FunctionList .RS 4 \fIButton\fP and \fIModifiers\fP are exactly the same as for the fvwm \fIMouse\fP command. .RE .sp Select actions: Select FunctionList .RS 4 A \fIFunctionList\fP is a sequence of commands separated by commas. They are executed in left to right order, in one shared context \- which currently only contains a pointer to the "current" button. If a button is selected (typically by the mouse pointer sitting on it) when the action is executed, then the current button is initialized to that button. Otherwise, it points to nothing. .RE .sp Most of the available commands then modify this "current" button, either by moving it around, making it become the selected button, or sending commands to fvwm acting on the window represented by that button. Note that while this current button is initialized to be the selected button, the selected button does not implicitly follow it around. This way, the user can send commands to various windows, without changing which button is selected. .sp Commands take five types of arguments: \fIInteger\fP, \fIManager\fP, \fIWindow\fP, \fIButton\fP, and \fIString\fP. A \fIString\fP is a string specified exactly as for fvwm \- either in quotes or as a single word not in quotes. Again, you may bind a sequence of commands to an event, by listing them separated by commas. .sp \fIWindow\fP and \fIButton\fP types look exactly the same in the .fvwm2rc file, but are interpreted as either specifying a managed window, or a FvwmIconMan button representing a window. They can either be an integer (which is interpreted module N where N is the number of buttons \- so 0 is the first and \-1 is the last), or one of the strings: \fISelect\fP, \fIFocus\fP, \fIUp\fP, \fIDown\fP, \fIRight\fP, \fILeft\fP, \fINext\fP, \fIPrev\fP. \fISelect\fP and \fIFocus\fP refer to the currently selected or focused button or window. \fIUp\fP, \fIDown\fP, \fIRight\fP, and \fILeft\fP refer to the button or window above, below, to the right of, or to the left of the current button in the manager window, allowing navigation around the manager window. \fINext\fP and \fIPrev\fP designates the window, button, or manager after or before the current button, allowing navigation of the one dimensional list of windows which is drawn in the manager window. If the manager is sorted, \fINext\fP and \fIPrev\fP move through the windows in the sorted order. .sp The \fIManager\fP type can either be an integer, \fINext\fP, or \fIPrev\fP. The meaning is analogous to that of the \fIButton\fP type, but in terms of the integral index of the managers, restricted to managers which are nonempty. .sp The following functions are currently defined: .sp bif Button Integer/String .RS 4 A relative branch instruction. If \fIButton\fP is \fISelect\fP or \fIFocus\fP, then take the branch if there is a selected button or a focused button. If \fIButton\fP is an integer, then branch if nonzero. If it is one of \fIUp\fP, \fIDown\fP, \fIRight\fP, \fILeft\fP, \fINext\fP, \fIPrev\fP, then the branch is taken when the current button can move in that direction. If the branch is taken, then \fIInteger\fP commands are skipped. No backwards branches are allowed. .RE .sp bifn Button Integer/String .RS 4 The complement of bif. The branch is taken if \fIButton\fP evaluates to false, by the criteria listed for bif. .RE .sp gotobutton Button .RS 4 Sets current button to \fIButton\fP. If \fIButton\fP is an integer, then the current button is set to \fIButton\fP modulo the number of buttons, in the whichever manager contains the selected button, if any. .RE .sp gotomanager Manager .RS 4 Sets button to button 0 of \fIManager\fP. This will only go to a visible, nonempty manager. So an integral argument is taken modulo the number of such managers. .RE .sp jmp Integer/String .RS 4 Executes a relative jump of \fIInteger\fP instructions. Backwards jumps are not allowed. The jump is computed relative to the instruction following the jmp. .RE .sp label String .RS 4 Provides a label that previous instructions can jump to. It will not be visible to subsequent jump instructions, and the same label can be used multiple times in the same instruction list (though it would be perverse to do so.) .RE .sp print String .RS 4 Prints \fIString\fP to the console. Useful for debugging actions. .RE .sp printdebug .RS 4 Prints defined actions to the console. Should only be used by developers. To enable this command, set CONFIG and FUNCTIONS variables to \*(Aq1\*(Aq in the modules/FvwmIconMan/debug.h and recompile this module. .RE .sp quit .RS 4 Quits FvwmIconMan. .RE .sp refresh .RS 4 Causes all manager windows to redraw themselves. .RE .sp ret .RS 4 Stop executing the entire action. .RE .sp searchback String .RS 4 Sets button to button before the current one whose printed string in the manager window matches specified \fIString\fP, which may contain wildcards. .RE .sp searchforward String .RS 4 Sets button to button after the current one whose printed string in the manager window matches specified \fIString\fP, which may contain wildcards. .RE .sp select .RS 4 Selects the current button, if any. If a select action has been specified, it will then be run. Therefore, it is considered unwise to set the select button in the select action. .RE .sp sendcommand Command .RS 4 Sends the fvwm command \fICommand\fP to the window represented by the current button, if any. .RE .sp warp .RS 4 Warps cursor to current button, if any. .RE .sp \fBExamples:\fP gotobutton select, gotobutton Down, select .sp Selects the button below the currently selected button. Since the current button is already initialized to the selected button, this may be shortened to "gotobutton Down, select". .sp gotobutton Up, select .sp Selects the button above the currently selected button. .sp gotobutton 0, select .sp Selects the first button of the current manager. If there is no current manager, which is the case when no button is selected, then this does nothing. .sp gotobutton \-1, select .sp Selects the last button of the current manager. .sp gotobutton focus, select .sp Selects the button corresponding to the focused window. .sp gotobutton focus, Iconify .sp Sends the fvwm command Iconify to the focused window. Note that this does not change the selected button. .sp bif Next 3, gotobutton 0, select, ret, gotobutton Next, select .sp If a button is selected, and it\(cqs the last button, go to button 0. If it\(cqs not the last button, go to the next button. Otherwise, do nothing. Basically, this action cycles through all buttons in the current manager. .sp bif select 7, bif focus 3, gotomanager 0, select, ret, gotobutton focus, \(rs select, ret, gotobutton down, select .sp This is good for sending to FvwmIconMan with a SendToModule command. If there is a selected button, it moves down. Otherwise, if there is a focused button, it is selected. Otherwise, button 0 of manager 0 gets selected. .sp bif select Select, bif focus Focus, gotomanager 0, select, ret, label Focus, \(rs gotobutton focus, select, ret, label Select, gotobutton down, select .sp Same as previous, but using the label instruction. .sp In addition to being bound to keys and mice, actions can be sent from fvwm to FvwmIconMan via the SendToModule command. Don\(cqt quote the command when using SendToModule. Also, due to a bug in the current version of fvwm, don\(cqt quote FvwmIconMan either. .SH "SAMPLE CONFIGURATIONS" .sp This first example is of a the simplest invocation of FvwmIconMan, which only has one manager, and handles all windows: .sp .if n .RS 4 .nf .fam C ############################################################## # Load any modules which should be started during # fvwm initialization ModulePath /usr/lib/X11/fvwm:/usr/bin/X11 Module FvwmIconMan # Make FvwmIconMan title\-bar\-less, sticky, and give it an icon Style "Fvwm*" Icon toolbox.xpm,NoTitle,NoHandles,Sticky Style "FvwmIconMan" HandleWidth 5, Handles, BorderWidth 5 ############################################################## ############################################################## #Definitions used by the modules *FvwmIconMan: NumManagers 1 *FvwmIconMan: Resolution global *FvwmIconMan: Background slategrey *FvwmIconMan: Foreground white *FvwmIconMan: Font 7x13 *FvwmIconMan: ButtonGeometry 100x0 *FvwmIconMan: ManagerGeometry 1x0\-0+0 .fam .fi .if n .RE .sp This example is the Reader\(cqs Digest version of my personal configuration. It has two managers, one for emacs and one for everything else, minus things with no icon title. Only windows on the current page are displayed. The use of the \fIdrawicons\fP and \fIshape\fP options requires that fvwm and FvwmIconMan are compiled with the correct options. Note how the geometry and show options are specified per manager, and the others are common to all: .sp .if n .RS 4 .nf .fam C Style "FvwmIconMan" NoTitle, Sticky, WindowListSkip, BorderWidth 0 Style "FvwmIconMan" HandleWidth 0 Key F8 A N SendToModule FvwmIconMan bif select Select, bif focus Focus, \(rs gotomanager 0, select, sendcommand WarpToWindow, ret, label Focus, \(rs gotobutton focus, select, sendcommand WarpToWindow, ret, label Select, \(rs gotobutton prev, select, sendcommand WarpToWindow Key F9 A N SendToModule FvwmIconMan bif select Select, bif focus Focus, \(rs gotomanager 0, select, sendcommand WarpToWindow, ret, label Focus, \(rs gotobutton focus, select, sendcommand WarpToWindow, ret, label Select, \(rs gotobutton next, select, sendcommand WarpToWindow *FvwmIconMan: NumManagers 2 *FvwmIconMan: Resolution page *FvwmIconMan: Background steelblue *FvwmIconMan: Foreground white *FvwmIconMan: Font 7x13 *FvwmIconMan: UseWinList true *FvwmIconMan: DrawIcons true *FvwmIconMan: Shape true *FvwmIconMan: FollowFocus true *FvwmIconMan: Sort name *FvwmIconMan: PlainButton up white steelblue *FvwmIconMan: SelectButton down white steelblue *FvwmIconMan: FocusButton up white brown *FvwmIconMan: FocusAndSelectButton down white brown *FvwmIconMan: TitleButton raisededge white steelblue *FvwmIconMan: NoIconAction "SendToModule FvwmAnimate animate" *FvwmIconMan: 1 Title "Emacs windows" *FvwmIconMan: 1 IconName "FvwmIconMan: Emacs" *FvwmIconMan: 1 Format "%i" *FvwmIconMan: 1 Show resource=emacs resource=gemacs *FvwmIconMan: 1 ManagerGeometry 1x0\-400+0 *FvwmIconMan: 1 ButtonGeometry 200x0 *FvwmIconMan: 2 Title "All windows" *FvwmIconMan: 2 IconName "FvwmIconMan: all" *FvwmIconMan: 2 Format "%c: %i" *FvwmIconMan: 2 DontShow icon=Untitled *FvwmIconMan: 2 ManagerGeometry 2x4\-0+0 *FvwmIconMan: 2 ButtonGeometry 200x0 *FvwmIconMan: transient Geometry 194x100 *FvwmIconMan: transient DontShow icon=Untitled *FvwmIconMan: transient Action Mouse 0 A sendcommand select select Iconify *FvwmIconMan: Action Mouse 1 N sendcommand Iconify *FvwmIconMan: Action Mouse 2 N sendcommand WarpToWindow *FvwmIconMan: Action Mouse 3 N sendcommand "Module FvwmIdent FvwmIdent" *FvwmIconMan: Action Key Left N gotobutton Left, select *FvwmIconMan: Action Key Right N gotobutton Right, select *FvwmIconMan: Action Key Up N gotobutton Up, select *FvwmIconMan: Action Key Down N gotobutton Down, select *FvwmIconMan: Action Key q N quit .fam .fi .if n .RE .SH "UNFINISHED BUSINESS" .sp There is one bug that I know of. A honest to goodness solution to this would be appreciated. When an icon manager is set to grow upwards or leftwards, on some machines it may wander occasionally. .sp It doesn\(cqt handle windows without resource names as gracefully as it should. .SH "AUTHOR" .sp Brady Montz (\c .MTO "bradym\(atcs.arizona.edu" "" ")." .SH "THANKS" .sp .if n .RS 4 .nf .fam C Thanks to: David Berson , Gren Klanderman , David Goldberg , Pete Forman , Neil Moore , Josh M. Osborne , Chris Siebenmann , Bjorn Victor . for contributing either code or truly keen ideas. .fam .fi .if n .RE