mirror of
https://github.com/labwc/labwc.git
synced 2026-02-21 01:40:26 -05:00
window-rules: support title criteria
Example config:
<windowRules>
<windowRule identifier="foot" title="max">
<action name="Maximize"/>
</windowRule>
</windowRules>
Observe that:
- `foot -T foo` starts maximized
- `xterm -T foo` starts normal
This commit is contained in:
parent
63db731cf4
commit
d37e705548
5 changed files with 90 additions and 30 deletions
|
|
@ -376,11 +376,19 @@
|
|||
</libinput>
|
||||
|
||||
<!--
|
||||
Window Rules
|
||||
- Criteria can consist of 'identifier' or 'title' or both (in which case
|
||||
AND logic is used).
|
||||
- 'identifier' relates to app_id for native Wayland windows and WM_CLASS
|
||||
for XWayland clients.
|
||||
- Matching against patterns with '*' (wildcard) and '?' (joker) is
|
||||
supported. Pattern matching is case-insensitive.
|
||||
|
||||
<windowRules>
|
||||
<windowRule identifier="*">
|
||||
<action name="Maximize" />
|
||||
</windowRule>
|
||||
<windowRule identifier="some-application" serverDecoration="yes" />
|
||||
<windowRule identifier="*"><action name="Maximize"/></windowRule>
|
||||
<windowRule identifier="foo" serverDecoration="yes"/>
|
||||
<windowRule title="bar" serverDecoration="yes"/>
|
||||
<windowRule identifier="baz" title="quax" serverDecoration="yes"/>
|
||||
</windowRules>
|
||||
-->
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue