config: support window switcher field definitions

<windowSwitcher>
  <fields>
    <field content="type" width="25%" />
    <field content="app_id" width="25%" />
    <field content="title" width="50%" />
  </fields>
</windowSwitcher>

Relates to issues #852 #855 #879
This commit is contained in:
Johan Malm 2023-04-19 14:44:41 +01:00 committed by Johan Malm
parent 36849eb7ef
commit 0f37c04df0
5 changed files with 198 additions and 34 deletions

View file

@ -89,6 +89,20 @@ The rest of this man page describes configuration options.
*outlines* [yes|no] Draw an outline around the selected window when
switching between windows. Default is yes.
*<windowSwitcher><fields><field content="" width="%">*
Define window switcher fields.
*content* defines what the field shows and can be any of:
- *type* Show view type ("xdg-shell" or "xwayland")
- *app_id* Show app_id (class for XWayland)
- *title* Show window title if different to app_id
*width* defines the width of the field expressed as a percentage of
the overall window switcher width. The "%" character is required.
## RESISTANCE
*<resistance><screenEdgeStrength>*

View file

@ -38,7 +38,13 @@
</font>
</theme>
<windowSwitcher show="yes" preview="yes" outlines="yes" />
<windowSwitcher show="yes" preview="yes" outlines="yes">
<fields>
<field content="type" width="25%" />
<field content="app_id" width="25%" />
<field content="title" width="50%" />
</fields>
</windowSwitcher>
<!-- edge strength is in pixels -->
<resistance>