mirror of
https://github.com/labwc/labwc.git
synced 2026-04-13 08:21:15 -04:00
Window switch, add custom field, with printf style config
based on work by Consolatis. I added documentation, examples and repackaged.
This commit is contained in:
parent
11b6836a38
commit
6311b3ac6a
5 changed files with 202 additions and 45 deletions
|
|
@ -77,8 +77,30 @@
|
|||
<field content="output" width="9%" />
|
||||
<field content="identifier" width="30%" />
|
||||
<field content="title" width="50%" />
|
||||
</fields>
|
||||
</fields>
|
||||
</windowSwitcher>
|
||||
|
||||
A new custom field has been added that will effectively replace the above.
|
||||
It's used like this.
|
||||
|
||||
<windowSwitcher show="yes" preview="no" outlines="no" allWorkspaces="yes">
|
||||
<fields>
|
||||
<field content="custom" format="%b %3s %-10o %-20W %-10i %t" width="100%" />
|
||||
</fields>
|
||||
</windowSwitcher>
|
||||
|
||||
Note: you can embed text into the string, or rearrange the order of elements
|
||||
or leave them out completely. Recommend using a monospace font for the osd
|
||||
Printf style formatting, including spacing and justification.
|
||||
Fields are:
|
||||
%B -> type (backend)
|
||||
%b -> type_short (backend)
|
||||
%I -> identifier
|
||||
%i -> trimmed_identifier
|
||||
%s -> state
|
||||
%o -> output
|
||||
%W -> workspace
|
||||
%t -> title
|
||||
-->
|
||||
|
||||
<!-- edge strength is in pixels -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue