module/i3: add ‘persistent’ attribute

Add ‘persistent’, a list-of-strings specifying workspace names that
should be persistent. That is, workspaces that should never be
removed, even if empty.

Note that the workspaces _are_ still destroyed (in i3/Sway), but
yambar keeps abstractions for them around. This is useful to e.g. keep
a strict order between your “core” workspaces.

Closes #72
This commit is contained in:
Daniel Eklöf 2021-07-26 16:32:27 +02:00
parent 21adc40a52
commit 7da13a26d0
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 143 additions and 50 deletions

View file

@ -65,6 +65,10 @@ with the _application_ and _title_ tags to replace the X11-only
: enum
: no
: How to sort the list of workspaces; one of _none_, _ascending_ or _descending_, defaults to _none_.
| persistent
: list of strings
: no
: Persistent workspaces. I.e. workspaces that are never removed, even if empty.
| left-spacing
: int
: no