osd: add window-switcher field content types (#1623)

...`workspace`, `state`, `type_short` and `output`.

Example usage:

    <windowSwitcher allWorkspaces="yes">
      <fields>
        <field content="workspace" width="5%" />
        <field content="state" width="3%" />
        <field content="type_short" width="3%" />
        <field content="output" width="9%" />
        <field content="identifier" width="30%" />
        <field content="title" width="50%" />
      </fields>
    </windowSwitcher>
This commit is contained in:
droc12345 2024-03-16 10:28:37 -05:00 committed by GitHub
parent 901240b321
commit b0c2ac1a6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 77 additions and 0 deletions

View file

@ -216,6 +216,14 @@ this is for compatibility with Openbox.
- *title* Show window title if different to app_id
- *workspace* Show workspace name
- *state* Show window state, M/m/F (max/min/full)
- *type_short* Show view type ("W" or "X")
- *output* Show output id, if more than one output detected
*width* defines the width of the field expressed as a percentage of
the overall window switcher width. The "%" character is required.