.\" t .\" @(#)fvwm-2.6.8 06 November 2016 .de EX \"Begin example .ne 5 .if n .sp 1 .if t .sp .5 .nf .in +.25i .. .de EE .fi .in -.25i .if n .sp 1 .if t .sp .5 .. .ta .2i .4i .6i .8i .TH FvwmCommand 1 "06 November 2016 (2.6.8)" Fvwm "Fvwm Modules" .UC .SH NAME FvwmCommand \- fvwm command external interface .SH SYNOPSIS FvwmCommand [-cmrvw] [-S name] [-i level] [-f name] [-F level] [command...] .SH DESCRIPTION FvwmCommand lets you monitor fvwm transaction and issue fvwm command from a shell command line or scripts. FvwmCommand takes each argument as a fvwm command. Quotes can be used to send commands including spaces. .EX FvwmCommand 'FvwmPager 0 1' .EE .br .SH 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: .EX Module FvwmCommandS or AddToFunc StartFunction "I" Module FvwmCommandS .EE Then, in script file or from shell: .EX FvwmCommand 'popup Utilities' .EE .SH OPTIONS .IP "\fI-c\fR" 0.4i Informs FvwmCommand to read multiple commands from the standard input instead of the one command specified in the command line arguments. This disables \fI-m\fR or \fI-i\fR. .sp .EX (echo "Exec xload"; echo "Beep") | FvwmCommand -c .EE .IP "\fI-F \fR" 0.4i Specifies the level of fvwm window flags FvwmCommand outputs. .sp .RS .IP 0 0.4i No window flags will be printed. .RE .RS .IP 2 0.4i Full window flags will be printed if information level, -i option, is 2 or 3. .sp .RE .IP "\fI-f \fR" 0.4i Specifies an alternative FIFO set to communicate with a server. The default FIFO set is /var/tmp/FvwmCommand-${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. .IP "\fI-i \fR" Specifies the level of information that FvwmCommand outputs. .sp .RS .IP 0 0.4i Error messages only. .EX FvwmCommand -i0 FvwmBanner .EE will show a banner without any output. On the other hand, .EX FvwmCommand -i 0 foobar .EE will return, .EX [fvwm][executeModule]: <> No such module \'foobar\' in ModulePath '/usr/lib/X11/fvwm' .EE Note that Fvwm doesn't return any error messages in cases like below since 'windowid' itself is a valid command. .sp .EX FvwmCommand -i 0 'windowid foo bar' .EE .IP 1 Errors, replies and window configuration information. This is the default. .EX FvwmCommand send_windowlist .EE Information like below will show up. .EX 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 .EE 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