.\" t .\" @(#)FvwmCommand.1 4/6/98 .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 1x "May 11 1998" .UC .SH NAME FvwmCommand \- FVWM2 command external interface .SH SYNOPSIS FvwmCommand [-mrvw] [-S name] [-i level] [-f name] [-F level] [command...] .SH DESCRIPTION FvwmCommand lets you monitor fvwm2 transaction and issue fvwm2 command from a shell command line or scripts. FvwmCommand takes each argument as a fvwm2 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 fvwm2, either in .fvwm2rc file, from menu, or from FvwmConsole. From then on, FvwmCommand can be called from a shell or script to execute fvwm2 commands. From within .fvwm2rc file: .EX Module FvwmCommandS or AddToFunc "InitFunction" "I" Module FvwmBanner + "I" Module FvwmPager 0 8 + "I" Module FvwmCommandS AddToFunc "RestartFunction" "I" Module FvwmCommandS + "I" Module FvwmPager 0 8 .EE Then, in script file or from shell: .EX FvwmCommand 'popup "Utilities"' .EE .SH OPTIONS .IP "\fI-F \fR" 0.4i Specifies the level of fvwm2 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 ~/.FvwmCommand, in which ~/.FvwmCommandC is used to send commands and ~/.FvwmCommandM is to receive messages. 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/fvwm2' .EE Note that Fvwm2 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 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