Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mwmrc(5x) [debian man page]

MWMRC(5x)							  LessTif Manuals							 MWMRC(5x)

NAME
mwmrc - The M*tif Window Manager configuration file DESCRIPTION
The LessTif window manager mwm supports both a global configuration file /etc/X11/mwm/system.mwmrc and a per-user configation file ~/.mwmrc. 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. Block types There are three types of blocks: Menu bindings Button bindings Key bindings Menu bindings Menu bindings are introduced by the Menu keyword. The generic form of the entries is label mnemonic accelerator function . Both mnemonic and accelerator may be empty. For example: "Foo bar" _R Alt<Key>F5 f.restore Button bindings Button bindings are introduced by the Buttons keyword. The entries each are Button name Context Function . For example: <Btn3Down> icon|frame f.post_wmenu Key bindings Key bindings are very similar to button bindings. The entries each are Key name Context Function . 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. Button name A button name is Btn followed by the number (1..5) and an action (Up, Down, Click, Click2); for example: Btn2Click Context A context is a single string consisting of bar (`|') separated object names (root, icon, menub, minimizeb, maximizeb , window, title, frame, border); for example: icon|title Function A function is a string starting with "f.". The functions are: f.beep, f.circle_down, f.circle_up, f.desk, f.exec, f.focus_color, f.focus_key, f.goto_page, f.kill, f.lower, f.maximize, f.menu, f.minimize, f.move, f.next_cmap, f.next_key, f.nop, f.normalize, f.normal- ize_and_raise, f.pack_icons, f.pass_keys, f.post_wmenu, f.prev_cmap, f.prev_key, f.quit_mwm, f.raise, f.raise_lower, f.refresh, f.refresh_win, f.resize, f.restart, f.restore, f.restore_and_raise, f.screen, f.send_msg, f.separator, f.set_behavior, f.title, f.tog- gle_page, f.window_list. EXAMPLE
For a complete example, check out /etc/X11/mwm/system.mwmrc or look at the system.mwmrc distributed with the LessTif sources. AUTHORS
mwm was written by the LessTif project, http://www.lesstif.org/ and others. This manpage was written by Ray Dassen <jdassen@debian.org>. SEE ALSO
mwm(1x) LessTif Project JULY 2001 MWMRC(5x)

Check Out this Related Man Page

Mwm(3)							User Contributed Perl Documentation						    Mwm(3)

NAME
Tk::Mwm - Communicate with the Motif(tm) window manager. SYNOPSIS
use Tk::Mwm; $toplevel->mwmOption?(args)? $toplevel->mwm(option ?,args?) DESCRIPTION
Interface to special extentions supported by mwm. METHODS
$toplevel->mwmDecoration?(?option??=>value? ?,...?)? When no options are given, this method returns the values of all the decorations options for the toplevel window with the $toplevel. When only one option is given without specifying the value, the current value of that option is returned. When more than one "option- value" pairs are passed to this method, the specified values will be assigned to the corresponding options. As a result, the appearance of the Motif decorations around the toplevel window will be changed. Possible options are: -border, -menu, -maximize, -minimize, -resizeh and -title. The value must be a Boolean value. The values returned by this command are undefined when the window is not managed by mwm. $toplevel->mwmIsmwmrunning This returns value is true if mwm is running on the screen where the specified window is located, false otherwise. $toplevel->mwmProtocol When no additional options are given, this method returns all protocols associated with this toplevel window. $toplevel->mwmProtocol(activate => protocol_name) Activate the mwm protocol message in mwm's menu. $toplevel->MwmProtocol(add => protocol_name, menu_message) Add a new mwm protocol message for this toplevel window. The message is identified by the string name specified in protocol_name. A menu item will be added into mwm's menu as specified by menu_message. Once a new mwm protocol message is added to a toplevel, it can be caught by the TK protocol method. Here is an example: $toplevel->mwmProtocol('add' => 'MY_PRINT_HELLO', '"Print Hello" _H Ctrl<Key>H'); $toplevel->protocol('MY_PRINT_HELLO' => sub {print "Hello"}); $toplevel->mwmProtocol('deactivate' => protocol_name) Deactivate the mwm protocol message in mwm's menu. $toplevel->mwmProtocol('delete' => protocol_name) Delete the mwm protocol message from mwm's menu. Please note that the window manager protocol handler associated with this protocol (by the protocol method) is not deleted automatically. You have to delete the protocol handle explicitly. E.g.: $mw->mwmProtocol('delete' => 'MY_PRINT_HELLO'); $mw->protocol('MY_PRINT_HELLO' => ''); BUGS
This is a Tix extension which perl/Tk has adopted. It has not been tested as perl/Tk's author has not got round to installing a Motif Window Manager. On some versions of mwm, the -border will not disappear unless -resizeh is turned off. Also, the -title will not disappear unless all of -title, -menu, -maximize and -minimize are turned off. SEE ALSO
Tk::Wm Tk::tixWm Tk::Toplevel KEYWORDS
window manager, mwm, TIX AUTHOR
Ioi Kim Lam - ioi@graphics.cis.upenn.edu perl v5.12.1 2007-05-05 Mwm(3)
Man Page