module/river: add ‘per-output’ attribute

When set, river tags and seats’ view titles apply to the output yambar
is on, only.

The default is disabled, which implements the old behavior, where
river tags and seats’ view titles represent the union of all
outputs.
This commit is contained in:
Daniel Eklöf 2021-08-02 19:31:01 +02:00
parent 1c6c73928b
commit ba7b9e6244
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 41 additions and 12 deletions

View file

@ -12,8 +12,8 @@ about the river tags.
It has an interface similar to the i3/sway module.
The configuration for the river module specifies one _title_ particle,
which will be instantiated with tags representing the currently active
seat and the currently focused view's title.
which will be instantiated once for each seat, with tags representing
the seats' name and the title of the seats' currently focused view.
It also specifies a _content_ template particle, which is instantiated
once for all 32 river tags. This means you probably want to use a
@ -41,10 +41,10 @@ once for all 32 river tags. This means you probably want to use a
: Set to *focused* if _focused_ is true, *unfocused* if _visible_ is true, but _focused_ is false, or *invisible* if the river tag is not visible on any monitors.
| seat
: string
: The name of the currently active seat (*title* particle only, see CONFIGURATION)
: The name of the seat (*title* particle only, see CONFIGURATION)
| title
: string
: The focused view's title (*title* particle only, see CONFIGURATION)
: The seat's focused view's title (*title* particle only, see CONFIGURATION)
# CONFIGURATION
@ -60,6 +60,12 @@ once for all 32 river tags. This means you probably want to use a
: particle
: yes
: Template particle that will be instantiated once for all of the 32 river tags.
| per-output
: bool
: no
: When set to false (the default), tags reflect the union of all
outputs. When set to true, tags reflect river tags and seats for
the output yambar is on only.
# EXAMPLES