File: mwmrc.5

package info (click to toggle)
lesstif2 1%3A0.95.2-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 21,940 kB
  • ctags: 25,303
  • sloc: ansic: 269,400; sh: 10,154; makefile: 3,509; yacc: 1,892; lex: 662; exp: 114; cpp: 95
file content (188 lines) | stat: -rw-r--r-- 4,249 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
.\"
.\" $Header: /cvsroot/lesstif/lesstif/doc/lessdox/clients/mwmrc.5,v 1.2 2001/07/16 08:39:47 amai Exp $
.\"
.\" Copyright (C) 1998 Ray Dassen <jdassen@debian.org>.
.\" Copyright (C) 1999-2001 LessTif Development Team
.\"
.\" This is free software; you can redistribute it and/or modify it under
.\" the terms of the GNU General Public License as published by the Free
.\" Software Foundation; either version 2, or (at your option) any later
.\" version.
.\"
.\" This is distributed in the hope that it will be useful, but WITHOUT
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
.\" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
.\" for more details.
.\"
.\" You should have received a copy of the GNU General Public License with
.\" your Debian GNU/Linux system, in /usr/doc/copyright/GPL, or with the
.\" dpkg source package as the file COPYING.  If not, write to the Free
.\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
.\"
.TH MWMRC 5x "JULY 2001" "LessTif Project" "LessTif Manuals"
.SH NAME
mwmrc \- The M*tif Window Manager configuration file

.SH DESCRIPTION
The LessTif window manager
.B mwm
supports both a global configuration file
.B /etc/X11/mwm/system.mwmrc
and a per-user configation file
.BR ~/.mwmrc .

.SH 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.

.SH Block types
There are three types of blocks:
.RS
.TP
Menu bindings
.TP 
Button bindings
.TP
Key bindings
.RE

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


.SH Button bindings

Button bindings are introduced by the
.B Buttons
keyword.
The entries each are
.I Button name Context Function .
For example:
.RS
<Btn3Down>	icon|frame	f.post_wmenu
.RE

.SH Key bindings
Key bindings are very similar to button bindings.
The entries each are
.I Key name Context Function .
For example:
.RS
Alt<Key>Tab	root|icon|window	f.next_key
.RE

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

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

.SH Accelerator
An accelerator is a key name.

.SH Button name
A button name is 
.B "Btn"
followed by the number
.RB ( 1 .. 5 )
and an action
.RB ( Up ", " Down ", " Click ", " Click2 );
for example:
.RS 
Btn2Click
.RE

.SH Context 
A context is a single string consisting of bar (`|') separated object names 
.RB ( root ", " icon ", " menub ", " minimizeb ", " maximizeb
.RB ", " window ", " title ", " frame ", " border );
for example:
.RS
icon|title
.RE

.SH Function
A function is a string starting with "f.". The functions are:
.BR f.beep ", "
.BR f.circle_down ", "
.BR f.circle_up ", "
.BR f.desk ", "
.BR f.exec ", "
.BR f.focus_color ", "
.BR f.focus_key ", "
.BR f.goto_page ", "
.BR f.kill ", "
.BR f.lower ", "
.BR f.maximize ", "
.BR f.menu ", "
.BR f.minimize ", "
.BR f.move ", "
.BR f.next_cmap ", "
.BR f.next_key ", "
.BR f.nop ", "
.BR f.normalize ", "
.BR f.normalize_and_raise ", "
.BR f.pack_icons ", "
.BR f.pass_keys ", "
.BR f.post_wmenu ", "
.BR f.prev_cmap ", "
.BR f.prev_key ", "
.BR f.quit_mwm ", "
.BR f.raise ", "
.BR f.raise_lower ", "
.BR f.refresh ", "
.BR f.refresh_win ", "
.BR f.resize ", "
.BR f.restart ", "
.BR f.restore ", "
.BR f.restore_and_raise ", "
.BR f.screen ", "
.BR f.send_msg ", "
.BR f.separator ", "
.BR f.set_behavior ", "
.BR f.title ", "
.BR f.toggle_page ", "
.BR f.window_list "."

.SH EXAMPLE
For a complete example, check out
.B /etc/X11/mwm/system.mwmrc
or look at the
.B system.mwmrc
distributed with the LessTif sources.

.SH AUTHORS
.BR mwm
was written by the LessTif project,
.BR http://www.lesstif.org/ 
and others. This manpage was written by Ray Dassen 
.IR <jdassen@debian.org> .
.SH "SEE ALSO"
.BR mwm (1x)