DESCRIPTION

STRUCTURE

Each mwm configuration file consist of blocks of bindings. Each block
consists of a block type keyword, a name and a set of entries between
curly braces (‘{’ and ’}’).
An exclamation mark (‘!’) introduces a comment. Comments extend to the
end of the line.

Blocktypes

There are three types of blocks:
Menu bindings
Button bindings
Key bindings

Menubindings

Menu bindings are introduced by the Menu keyword. The generic form of
the entries is labelmnemonicacceleratorfunction. Both mnemonic and
accelerator may be empty. For example:
"Foo bar" _R Alt<Key>F5 f.restore

Buttonbindings

Button bindings are introduced by the Buttons keyword. The entries
each are ButtonnameContextFunction. For example:
<Btn3Down> icon|frame f.post_wmenu

Keybindings

Key bindings are very similar to button bindings. The entries each are
KeynameContextFunction. For example:
Alt<Key>Tab root|icon|window f.next_key

Label

A label is either a plain string, or a bitmap. Bitmaps are indicated as
"@" followed by the filename. For example:
mailer @fortytwo.bmp

Mnemonic

A mnemonic is an underscore ("_") followed by a single character. For
example:
_M

Accelerator

An accelerator is a key name.

Buttonname

A button name is Btn followed by the number (1..5) and an action (Up,
Down, Click, Click2); for example:
Btn2Click