Solaris Common Desktop Environment: Advanced User's and System Administrator's Guide

Workspace Manager Menu Syntax

Workspace Manager menus have the syntax:

Menu MenuName
 {
    selection1 [mnemonic] [accelerator] function [argument]
    selection2 [mnemonic] [accelerator] function [argument]
    …
 }

where:

selection—the text or bitmap that appears on the menu. If the text includes spaces, enclose the text in quotation marks. For bitmaps, use the syntax @/path.

mnemonic—a single character that acts as a keyboard shortcut when the menu is displayed. It is specified in the form _character.

accelerator—a keyboard shortcut that is active whether or not the menu is displayed. Accelerators have the syntax modifier<Key> Keyname where modifier is Ctrl , Shift, Alt (Extend char), or Lock. For a list of all possible key names, refer to the keysymdef.h file in your "X11 include" directory.

function—the function to be performed when this selection is made. Refer to the dtwmrc(4) man page for a list of functions.

argument—function arguments. Refer to the dtwmrc(4) man page for more details.

For example, the following menu item labeled Restore normalizes the window. When the menu is displayed, typing "R" will also restore the window. Pressing Extend char F5 will also restore the window.

Restore   _R   Alt<Key> F5   f.normalize

Note –

For complete information on Workspace Manager menu syntax, see the dtwmrc(4) man page.