modules/dwl: handle the appid status

dwl added an "appid" field as output status [1]. We currently don't
handle this field, and thus output warnings that say "UNKNOWN action".

Handle the "appid" field correctly and expose a value of this field to
users. Also, suppress the warnings.

Link: 7f9a212476 [1]
This commit is contained in:
Yutaro Ohno 2023-03-23 21:23:45 +09:00
parent daeb59e021
commit 963b9d47ee
3 changed files with 19 additions and 3 deletions

View file

@ -8,7 +8,7 @@ dwl - This module provides information about dwl tags, and information.
This module provides a map of each tags present in dwl.
Each tags has its _id_, its _name_, its status (_selected_, _empty_, _urgent_)
and the global data like _title_, _fullscreen_, _floating_,
and the global data like _title_, _appid_, _fullscreen_, _floating_,
_selmon_, and _layout_). The tags start a 1. For needs where
you only want information about the global data and not the _tags_,
there is a tag with the id _0_ that contains only the global data.
@ -44,6 +44,9 @@ Running multiple instances at the same time may result in
| title
: string
: The currently focused window's title.
| appid
: string
: The currently focused window's application id.
| fullscreen
: bool
: True if there is a fullscreen window in the current tag.