AddToFunc [name [I | M | C | H | D action]]
+ M Move
+ D Lower
embedded whitespace work or not. This behavior may also change in the future without further notice.
The letter before the action tells what kind of action triggers the command which follows it. ‘I’
stands for “Immediate”, and is executed as soon as the function is invoked. ‘M’ stands for “Motion”,
i.e. if the user starts moving the mouse. ‘C’ stands for “Click”, i.e., if the user presses and
releases the mouse button. ‘H’ stands for “Hold”, i.e. if the user presses a mouse button and holds
it down for more than ClickTime milliseconds. ‘D’ stands for “Double-click”. The action ‘I’ causes
an action to be performed on the button-press, if the function is invoked with prior knowledge of
which window to act on.
command line. Please refer to the Command Expansion section for details.
Please read the comments on executing complex functions in the section Scripting and Complex
+ I Next ($0) Iconify off
+ I Next (AcceptsFocus, $0) Focus
+ I None ($0) Exec exec $0 $1
sorts of different arguments. You could use
+ I Raise
+ I Exec xdpr -id $[w.id]
for the win95 theme) to iconify all windows of the same resource:
Mouse 3 6 A FuncIconifySameResource $[w.resource]
change the contents of a function during a fvwm session. The function can be rebuilt using AddToFunc.
to stderr. It is useful to find out how fvwm handles quoting and for debugging functions
to use an additional “exec” at the beginning of command. Without that, the shell that fvwm invokes to
run your command stays until the command exits. In effect, you’ll have twice as many processes
running as you need. Note that some shells are smart enough to avoid this, but it never hurts to
include the “exec” anyway.
function. The program rxvt is started with an assortment of options.
shell is specified, instead of the default Bourne shell (/bin/sh).
mouse button 1 to a function called “Move-or-Raise”, whose definition was provided as an example
earlier in this man page. After performing this binding fvwm executes the “move-or-raise” function
whenever button 1 is pressed in a window’s title-bar.
InfoStoreAdd key value
of an fvwm config file. For example storing program preferences for opening video files.
functions, or when opening programs of a certain type. Previous to this command the only way to do
this was via SetEnv but this is discouraged because it places such information in the environment,
which pollutes it and makes the information global to other processes started by fvwm which may then
modify them which might not be what’s wanted. Hence the point of InfoStoreAdd is to still allow for
such information to be stored, but kept internal to fvwm.
happens through fvwm’s usual expansion mechanism. See the Command Expansion section for more details.
PipeRead command [Quiet]
PipeRead ‘for i in $HOME/*; \
do echo “+ $i Exec xterm -e vi $i”; done’
Read filename [quiet]
SetEnv variable value
is invoked the user is asked to select a window. Sometimes this behavior is unwanted, for example if
the function was called by a module and the window that was selected at first does not exist anymore.
You can prevent this by putting Silent in front of the fvwm command. If a function that needs a
window is called with Silent without a window selected, it simply returns without doing anything. If
Silent is used on a user defined function it affects all function and sub function calls until the
original function exits.
prefix to its command. Expansion of the command line is done as if Silent was not there.
# do not complain on keyboards without “Help” key
Silent Key Help R A Popup HelpMenu
removed from the environment array inherited by processes started directly by fvwm.
pause until a new window matching window appears. This can be a window’s name, class, or resource
string. It may contain the wildcards ‘*’ and ‘?’, which are matched in the usual Unix filename
manner. This is particularly useful in the “InitFunction” if you are trying to start windows on
+ I Exec exec xterm -geometry 80×64+0+0
+ I Wait xterm
+ I GotoDesk 0 2
+ I Exec exec xmh -font fixed -geometry \
+ I GotoDesk 0 0
desk 2 and starts an xmh. After the xmh window appears control moves to desk 0.
processed only after the window appears or the command is aborted. For example, windows can not be
focused with FvwmIconMan or FvwmPager during a wait.
redefine this key sequence see the EscapeFunc command.