Each line of the definition creates a line on the menu as seen by the
user; types of lines include the menu title, a menu item proper, a
blank line, and a separator. The third component of each line
specifies the text that appears on that line. The fourth component
specifies the window manager function to be performed.
The first line of our example specifies the menu title. Lines with
empty text fields ("") together with the Nop
("No operation") function create
divider lines on the menu.
You can start from the default menus in the
system.fvwm2rc file and use the fvwm2 manpage to modify the existing menus or
create your own. It is simple to replace definition lines in the
template menus, and not much more difficult to write a new entry or
even a menu from scratch.
You can also change how the menus are displayed. Perhaps you
don't want a bunch of cascading menus off the Root
menu. In the previous section we set up some function keys to display
certain menus. That's one option. You might instead
specify pointer buttons to display various menus. In a typical
default, the first pointer button displays the Root menu and the
second displays the Window Ops menu. But since most Window Ops
functions (e.g., Move, Resize, Iconify) are available using the
pointer directly on parts of a window, you may instead choose to have
the second pointer button display another menu (e.g., Utilities).
 |  |  |
19.3. Adding Keyboard Shortcuts |  | 19.5. The WinList: Switching the Focus |