1
A 'pattern' looks like this:::
2
*(*['propertyname'[!]=]'regexp'*)* ...
4
Match definitions are enclosed in parentheses *(*...*)*, and if no
5
'propertyname' is given then *Name* is assumed. The 'regexp' can contain any
6
regular expression, or the special value *[current]*, which matches the
7
corresponding value of the currently focused window. See 'regex(7)' for more
8
information on acceptable regular expressions.
10
'propertyname' is not case sensitive, whereas the 'regexp' is.
12
If you specify multiple *('pattern'*) arguments, this implies an AND condition -
13
All specified patterns must match.
15
You can use *=* to test for equality or *!=* to test for inequality.
17
The following values are accepted for 'propertyname':::
19
A string, corresponding to the CLASSNAME property (The first field of
20
WM_CLASS from the output of the *xprop(1)* utility).
22
A string, corresponding to the CLASSCLASS property (The second field of
23
WM_CLASS from the output of the *xprop(1)* utility).
25
A string, corresponding to the window title (WM_NAME from *xprop(1)*).
27
A string, corresponding to the ROLE property (WM_WINDOW_ROLE from
30
Either *yes* or *no*, depending on whether the window is transient
31
(typically, a popup dialog) or not.
33
Either *yes* or *no*, depending on whether the window is maximized or
36
Either *yes* or *no*, depending on whether the window is minimized
39
Either *yes* or *no*, depending on whether the window is shaded or
42
Either *yes* or *no*, depending on whether the window is sticky (on
43
all workspaces) or not.
45
Either *yes* or *no*, depending on whether the window has asked to be
46
left off the focus list (or, the alt-tab list), or not.
48
Either *yes* or *no*, depending on whether the window has asked to be
49
left off the icon list (or, the taskbar), or not.
51
Either *yes* or *no*, depending on whether the window has the urgent
54
A number corresponding to the workspace number to which the window is
55
attached. The first workspace here is *0*. You may also use *[current]* to
56
match the currently visible workspace.
58
A string corresponding to the name of the workspace to which the
61
The number of the display head to which the window is attached. You
62
may match this against the special value *[mouse]* which refers to the
63
head where the mouse pointer currently resides.
65
The string name of the window's layer, which is one of
66
*AboveDock*, *Dock*, *Top*, *Normal*, *Bottom*, *Desktop*
68
.Matches any windows with the CLASSNAME of "xterm"
73
.Matches any windows with the same CLASSNAME as the currently focused window
78
.Matches any windows on the same head as the mouse but on a different layer than the currently focused window
80
(Head=[mouse]) (Layer!=[current])