window-rules: implement type filter

Co-Authored-By: Grigory Kirillov <txgk@bk.ru>
This commit is contained in:
Tobias Bengfort 2024-04-19 20:15:49 +02:00 committed by Consolatis
parent 9be18f3009
commit 858e1c65cf
9 changed files with 157 additions and 79 deletions

View file

@ -820,7 +820,7 @@ defined as shown below.
<windowRules>
<!-- Action -->
<windowRule identifier="" title="">
<windowRule identifier="" title="" type="">
<action name=""/>
</windowRule>
@ -832,10 +832,10 @@ defined as shown below.
*Criteria*
*<windowRules><windowRule identifier="" title="" matchOnce="">*
*<windowRules><windowRule identifier="" title="" type="" matchOnce="">*
Define a window rule for any window which matches the criteria defined
by the attributes *identifier* or *title*. If both are defined, AND
logic is used, so both have to match.
by the attributes *identifier*, *title*, or *type*. If more than one
is defined, AND logic is used, so all have to match.
Matching against patterns with '\*' (wildcard) and '?' (joker) is
supported. Pattern matching is case-insensitive.
@ -844,6 +844,12 @@ defined as shown below.
*title* is the title of the window.
*type* [desktop|dock|toolbar|menu|utility|splash|dialog|dropdown_menu|
popup_menu|tooltip|notification|combo|dnd|normal] relates to
NET_WM_WINDOW_TYPE for XWayland clients. Native wayland clients have
type "dialog" when they have a parent or a fixed size, or "normal"
otherwise.
*matchOnce* can be true|false. If true, the rule will only apply to the
first instance of the window with the specified identifier or title.