FvwmCommand(1) Fvwm Modules FvwmCommand(1)
NAME
FvwmCommand - fvwm command external interface
SYNOPSIS
FvwmCommand [-cmrvw] [-S name] [-i level] [-f name] [-F level] [command...]
DESCRIPTION
FvwmCommand lets you monitor fvwm transaction and issue fvwm command from a shell command line or scripts. FvwmComâ
mand takes each argument as a fvwm command. Quotes can be used to send commands including spaces.
FvwmCommand 'FvwmPager 0 1'
INVOCATION
FvwmCommandS should be spawned once by fvwm, either in .fvwm2rc file, from menu, or from FvwmConsole. From then on,
FvwmCommand can be called from a shell or script to execute fvwm commands.
From within .fvwm2rc file:
Module FvwmCommandS
or
AddToFunc StartFunction "I" Module FvwmCommandS
Then, in script file or from shell:
FvwmCommand 'popup Utilities'
OPTIONS
-c Informs FvwmCommand to read multiple commands from the standard input instead of the one command specified in the
command line arguments. This disables -m or -i.
(echo "Exec xload"; echo "Beep") | FvwmCommand -c
-F
Specifies the level of fvwm window flags FvwmCommand outputs.
0 No window flags will be printed.
2 Full window flags will be printed if information level, -i option, is 2 or 3.
-f
Specifies an alternative FIFO set to communicate with a server. The default FIFO set is /var/tmp/FvwmComâ
mand-${DISPLAY}C, in which FvwmCommand..C is used to send commands and FvwmCommand..M is to receive messages. If
that path is unusable ${FVWM_USERDIR}/FvwmCommand-${DISPLAY} will be used instead. FvwmCommandS must have been
invoked with the same as its first argument prior to FvwmCommand invocation. Alternatively, option -S can
be used. Refer option -S. This option -f is useful when a dedicated connection is necessary to run a background
job while another connection is kept for interactive use.
-i
Specifies the level of information that FvwmCommand outputs.
0 Error messages only.
FvwmCommand -i0 FvwmBanner
will show a banner without any output. On the other hand,
FvwmCommand -i 0 foobar
will return,
[fvwm][executeModule]: <> No such module
'foobar' in ModulePath '/usr/lib/X11/fvwm'
Note that Fvwm doesn't return any error messages in cases like below since 'windowid' itself is a valid comâ
mand.
FvwmCommand -i 0 'windowid foo bar'
1 Errors, replies and window configuration information. This is the default.
FvwmCommand send_windowlist
Information like below will show up.
0x02000014 window FvwmConsole
0x02000014 icon FvwmConsole
0x02000014 class XTerm
0x02000014 resource FvwmConsole
0x01c00014 window console
0x01c00014 icon console
0x01c00014 class XTerm
0x01c00014 resource console
0x01000003 window Fvwm Pager
0x01000003 icon
0x01000003 class FvwmModule
0x01000003 resource FvwmPager
0x00c0002c window emacs: FvwmCommand.man
0x00c0002c icon FvwmCommand.man
0x00c0002c icon file xemacs.xpm
0x00c0002c class Emacs
0x00c0002c resource emacs
end windowlist
The first column shows the window ID number, which can be used in 'windowid' command. The second column
shows the information types. The last column shows the information contents. If no information is returned,
add -w