osd: support full app_id in window switcher (#1309)

Support showing full application
identifier or the trimmed variant in window switcher OSD.

Regression notice: For anyone using ‘identifier’ in window-switcher field configuration, change it to ‘trimmed_identifier’.
This commit is contained in:
kyak 2023-12-27 13:55:49 +03:00 committed by GitHub
parent ccd4ab943e
commit d2d469133f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 2 deletions

View file

@ -163,6 +163,9 @@ this is for compatibility with Openbox.
- *identifier* Show identifier (app_id for native Wayland
windows and WM_CLASS for XWayland clients)
- *trimmed_identifier* Show trimmed identifier. Trimming removes the first
two nodes of 'org.' strings.
- *title* Show window title if different to app_id
*width* defines the width of the field expressed as a percentage of

View file

@ -56,7 +56,8 @@
<windowSwitcher show="yes" preview="yes" outlines="yes">
<fields>
<field content="type" width="25%" />
<field content="identifier" width="25%" />
<field content="trimmed_identifier" width="25%" />
<!-- <field content="identifier" width="25%" /> -->
<field content="title" width="50%" />
</fields>
</windowSwitcher>