OSD window switcher, based on work done by @Consolatis,

it uses a custom field (a subset of printf style formatting) to
replace the original field formats. I added documentation, and
fixed the few style check complaints.

Example:

<windowSwitcher preview="no" outlines="no" allWorkspaces="yes">
  <fields>
    <field content="custom" format="foobar %b %3s %-10o %-20W %-10i%t" width="100%" />
  </fields>
</windowSwitcher>

Mono space font recommended, may need osd width adjusted
This commit is contained in:
Droc 2024-04-09 18:59:13 -05:00
parent c9de358075
commit 5fad413c21
13 changed files with 490 additions and 191 deletions

View file

@ -502,15 +502,6 @@ void server_init(struct server *server);
void server_start(struct server *server);
void server_finish(struct server *server);
/* Updates onscreen display 'alt-tab' buffer */
void osd_update(struct server *server);
/* Closes the OSD */
void osd_finish(struct server *server);
/* Moves preview views back into their original stacking order and state */
void osd_preview_restore(struct server *server);
/* Notify OSD about a destroying view */
void osd_on_view_destroy(struct view *view);
/*
* wlroots "input inhibitor" extension (required for swaylock) blocks
* any client other than the requesting client from receiving events