module/river: add support for river-status v2 (‘urgent’ views)

This commit is contained in:
Daniel Eklöf 2021-08-19 19:25:18 +02:00
parent b00954045b
commit 8b6b82f1e5
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 57 additions and 16 deletions

View file

@ -27,6 +27,9 @@ once for all 32 river tags. This means you probably want to use a
| id
: int
: River tag number
| urgent
: bool
: True if the river tag has at least one urgent view.
| visible
: bool
: True if the river tag is focused by at least one output (i.e. visible on at least one monitor).
@ -38,7 +41,7 @@ once for all 32 river tags. This means you probably want to use a
: True if the river tag has views (i.e. windows).
| state
: string
: 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.
: Set to *urgent* if _urgent_ is true, *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 seat (*title* particle only, see CONFIGURATION)