Skip to content

Commit 04e3d45

Browse files
committed
document buttons and rules files
1 parent 7094b7e commit 04e3d45

File tree

1 file changed

+80
-68
lines changed

1 file changed

+80
-68
lines changed

doc/adwm-config.5.in

+80-68
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ are described below under
4747
Key and button bindings are typically placed in a separate file, as
4848
described in
4949
.Xr @PACKAGE@-keys 5 .
50+
Window rules are typically placed in a separate file as described in
51+
.Xr @PACKAGE@-rules 5 .
5052
Theme elements (for backgrounds), dock applications (dock apps), and
5153
style elements (for decorative borders and the dock) are normally placed
5254
in separate files, also, as described in
@@ -209,7 +211,7 @@ Specifies the path and filename,
209211
.Pa <path> ,
210212
of a file from which to read key bindings.
211213
The path may be absolute or relative: when relative, the path
212-
is considered relative to the directory which contains the
214+
is considered relative to the directory that contains the
213215
configuration file in which the declaration resides.
214216
The default is
215217
.Pa keysrc ,
@@ -227,14 +229,68 @@ file to which it is associated, or included by one of those files. When
227229
a
228230
.Pa themerc
229231
file is specified, the file will normally specify or include the
230-
.Pa keysFile .
232+
.Cm keysFile .
231233
.Pp
232234
See
233235
.Xr @PACKAGE@-keys 5
234236
for more information on the format and contents of this file.
235237
.Pp
236238
Default:
237239
.Li Adwm* Ns Cm keysFile Ns Li : Pa keysrc
240+
.It Cm buttonFile Pa <path>
241+
Specifies the path and filename,
242+
.Pa <path> ,
243+
of a file from which to read mouse button bindings. The path may be
244+
absolute or relative: when relative, the path is considered relative to
245+
the directory that contains the configuration file in which the
246+
declaration resides. The default is
247+
.Pa buttonrc ,
248+
that is, the file named
249+
.Pa buttonrc
250+
in the same directory as the main configuration file.
251+
.Pp
252+
The
253+
.Pa buttonrc
254+
file is normally placed in the same directory as the
255+
.Pa themerc
256+
or
257+
.Pa stylerc
258+
file to which it is associated, or included by one of those files. When
259+
a
260+
.Pa themerc
261+
file is specified, the file will normally specify or include the
262+
.Cm buttonFile .
263+
.Pp
264+
See
265+
.Xr @PACKAGE@-buttons 5
266+
for more information on the format and contents of this file.
267+
.Pp
268+
Default:
269+
.Li "Adwm*" Ns Cm buttonFile Ns Li : Pa buttonrc
270+
.It Cm ruleFile Pa <path>
271+
Specifies the path and filename,
272+
.Pa <path> ,
273+
of a file from which to read window rules. The path may be absolute or
274+
relative: when relative, the path is considered relative to the
275+
directory that contains the configuration file in which the declaration
276+
resides. The default is
277+
.Pa rulerc ,
278+
that is, the file named
279+
.Pa rulerc
280+
in the same directory as the main configuration file.
281+
.Pp
282+
The
283+
.Pa rulerc
284+
file is normally placed in the same directory as the main configuration
285+
file to which it is associated, or included by the main configuration
286+
file.
287+
.Pp
288+
See
289+
.Xr @PACKAGE@-rules 5
290+
for more information on the format and contents of this file.
291+
.Pp
292+
Default:
293+
.Li "Adwm*" Cm ruleFile Ns Li : Ar rulerc
238294
.It Cm styleName Pa <directory>
239295
Specifies the name of a style directory under which
240296
to look for the
@@ -290,7 +346,7 @@ file is normally placed in the same directory as the
290346
file to which it corresponds, or included by that file. When a
291347
.Pa themerc
292348
file is specified, the file will normally specify or include the
293-
.Pa styleFile
349+
.Cm styleFile
294350
file.
295351
If the
296352
.Pa stylerc
@@ -336,7 +392,7 @@ file is normally placed in the same directory as the
336392
file to which it corresponds, or included by that file. When a
337393
.Pa themerc
338394
file is specified, the file will normally specify or include the
339-
.Pa dockFile
395+
.Cm dockFile
340396
file.
341397
If the
342398
.Pa dockrc
@@ -601,7 +657,7 @@ startup. Each value can be changed during the session using the key
601657
binding specified in the detail, below.
602658
.Pp
603659
These directives should normally be specified in the
604-
.Pa styleFile
660+
.Cm styleFile
605661
instead of the main configuration file: see
606662
.Xr @PACKAGE@-style 5 ;
607663
however, they are also addressed here.
@@ -878,7 +934,7 @@ Tag directives affect the number of views (desktops) presented
878934
by the window manager and names and layouts associated with
879935
those views.
880936
These directives should normally be specified in the
881-
.Pa styleFile
937+
.Cm styleFile
882938
instead of the main configuration file: see
883939
.Xr @PACKAGE@-style 5 ;
884940
however, they are also addressed here.
@@ -1123,14 +1179,16 @@ Example:
11231179
No defaults are provided in the default
11241180
.Pa @PACKAGE@rc
11251181
file. These resources, if defined at all, should likely be defined in the
1126-
.Pa styleFile
1182+
.Cm styleFile
11271183
associated with the current style, as it is a themed item.
11281184
.El
11291185
.Ss MOUSE DIRECTIVES
11301186
Mouse directives affect the actions of button clicks on the
11311187
root window, or on the menu button in the title bar of client
11321188
windows. These directives are normally specified in the
1133-
.Pa keysFile
1189+
.Cm keysFile
1190+
or
1191+
.Cm buttonFile
11341192
instead of the main configuration file: see
11351193
.Xr @PACKAGE@-keys 5 ;
11361194
however, they are also addressed here.
@@ -1156,7 +1214,7 @@ support a root menu.)
11561214
See
11571215
.Xr xde-menu 1
11581216
for a suitable root window menu for
1159-
.Cm @PACKAGE@ .
1217+
.Nm @PACKAGE_NAME@ .
11601218
.Pp
11611219
Default:
11621220
.Li Adwm* Ns Cm command Ns Li : Ar "xde-menu -P -b 3"
@@ -1167,7 +1225,7 @@ The default is to not execute a shell command.
11671225
See
11681226
.Xr xde-wkspmenu 1
11691227
for a suitable workspace menu for
1170-
.Cm @PACKAGE@ .
1228+
.Nm @PACKAGE_NAME@ .
11711229
.Pp
11721230
Default:
11731231
.Li Adwm* Ns Cm command2 Ns Li : Ar "xde-wkspmenu -p -b 2"
@@ -1178,14 +1236,14 @@ The default is to not execute a shell command.
11781236
See
11791237
.Xr xde-winlist 1
11801238
for a suitable window list menu for
1181-
.Cm @PACKAGE@ .
1239+
.Nm @PACKAGE_NAME@ .
11821240
.Pp
11831241
Default:
11841242
.Li "! Adwm*" Ns Cm command3 Ns Li : Ar "xde-winlist -p -b 1 --hidden"
11851243
.Pp
11861244
.Sy Note:
11871245
This command is commented out in the default
1188-
.Pa keysFile
1246+
.Cm keysFile
11891247
because it can be quite annoying to bind button 1 on the root window.
11901248
.It Li [ Ns Li { Ns Cm session Ns Li | Ns Cm screen<s> Ns Li } Ns Li . Ns Li ] Ns Cm menucommand Ar <shell-command>
11911249
Specifies the shell command to execute when a button is
@@ -1194,15 +1252,15 @@ The default is to not execute a shell command.
11941252
See
11951253
.Xr xde-winmenu 1
11961254
for a suitable window menu for
1197-
.Cm @PACKAGE@ .
1255+
.Nm @PACKAGE_NAME@ .
11981256
.Pp
11991257
Default:
12001258
.Li Adwm* Ns Cm menucommand Ns Li : Ar "xde-winmenu -p -b 1"
12011259
.El
12021260
.Ss KEY BINDINGS
12031261
Key bindings describe the binding of key presses to various functions.
12041262
These directives are normally specified in the
1205-
.Pa keysFile
1263+
.Cm keysFile
12061264
instead of the main configuration file. They are not addressed here.
12071265
See
12081266
.Xr @PACKAGE@-keys 5 .
@@ -1212,59 +1270,11 @@ to alter their behaviour (primarily for tiled layouts). Their purpose
12121270
is to address clients that are not well-behaved with dynamic window
12131271
managers.
12141272
.Pp
1215-
Rules are formatted as follows:
1216-
.Pp
1217-
.Li Cm rule<n> Ns Li : Ar <propregex> <tagregex> <isfloating> <hastitle>
1218-
.Pp
1219-
Where the fields are defined as follows:
1220-
.Pp
1221-
.Bl -tag -width ".Ar <isfloating>" -compact
1222-
.It Cm rule<n>
1223-
The rule, where
1224-
.Cm <n>
1225-
is a number from zero (0) to sixty-three (63), inclusive.
1226-
.Pp
1227-
.It Ar <propregex>
1228-
A regular expression meant to match the 3-tuple of resource class,
1229-
resource name, and role (which are separated by semicolons (":")):
1230-
.Pp
1231-
.Li Ar <res_class> Ns Li : Ns Ar <res_name> Ns Li : Ns Ar <role>
1232-
.Pp
1233-
Note that none of these fields contain any white space (any white space
1234-
characters will have been replaced by underscores ("_") in the string to
1235-
match. Also, the regular expression cannot contain any white space
1236-
either or an undefined result will occur.
1237-
The special sequence,
1238-
.Cm NULL ,
1239-
can be used to skip this regular expression.
1240-
.Pp
1241-
.It Ar <tagregex>
1242-
A regular expression meant to match the tag (desktop) name:
1243-
.Pp
1244-
.Li Ar <tagname>
1245-
.Pp
1246-
Note that
1247-
the tag name will not contain any white space (any white space
1248-
characters will have been replaced by underscores ("_") in the string to
1249-
match. Also, the regular expression cannot contain any white space.
1250-
The special sequence,
1251-
.Cm NULL ,
1252-
can be used to skip this regular expression.
1253-
.Pp
1254-
.It Ar <isfloating>
1255-
An integer which, when zero (0), indicates false; when non-zero, true.
1256-
When true, the client whose rule this matches will be started floating,
1257-
even on tiled layouts. When false, the client will be started tiled.
1258-
.Pp
1259-
.It Ar <hastitle>
1260-
An integer which, when zero (0), indicates false; when non-zero, true.
1261-
When true, the client whose rule this matches will not be given a
1262-
title bar. When false, it will be given a title bar.
1263-
.El
1264-
.Pp
1265-
Example:
1266-
.Dl ! Make Mplayer float with a title by default
1267-
.Dl Adwm* Ns Cm rule0 Ns Li : Ar ^Mplayer: NULL 1 1
1273+
These directives are normally specified in the
1274+
.Cm ruleFile
1275+
instead of the main configuration file. They are not addressed here.
1276+
See
1277+
.Xr @PACKAGE@-rules 5 .
12681278
.Sh DEFAULTS
12691279
The default configuration is provided in the default
12701280
configuration file, typically,
@@ -1339,6 +1349,8 @@ and
13391349
.Rs
13401350
.Xr echinus 1 ,
13411351
.Xr @PACKAGE@-keys 5 ,
1352+
.Xr @PACKAGE@-buttons 5 ,
1353+
.Xr @PACKAGE@-rules 5 ,
13421354
.Xr @PACKAGE@-theme 5 ,
13431355
.Xr @PACKAGE@-dock 5 ,
13441356
.Xr @PACKAGE@-style 5 ,
@@ -1360,7 +1372,7 @@ and
13601372
.Sh BUGS
13611373
No outstanding bugs.
13621374
.Sh HISTORY
1363-
.Cm @PACKAGE@
1375+
.Nm @PACKAGE_NAME@
13641376
configuration began with the simple X Resource scheme
13651377
provided by
13661378
.Xr echinus 1

0 commit comments

Comments
 (0)