ipc: add support for output event

For compatibility with i3 [1].

[1]: https://i3wm.org/docs/ipc.html#_output_event
This commit is contained in:
Simon Ser 2023-02-01 16:19:41 +01:00 committed by Simon Zeni
parent 2e33b0276f
commit 40eb29e7c5
4 changed files with 35 additions and 0 deletions

View file

@ -1445,6 +1445,9 @@ available:
: workspace
:[ Sent whenever an event involving a workspace occurs such as initialization
of a new workspace or a different workspace gains focus
|- 0x80000001
: output
: Sent when outputs are updated
|- 0x80000002
: mode
: Sent whenever the binding mode changes
@ -1565,6 +1568,20 @@ The following change types are currently available:
}
```
## 0x80000001. OUTPUT
Sent whenever an output is added, removed, or its configuration is changed.
The event is a single object with the property _change_, which is a string
containing the reason for the change. Currently, the only value for _change_ is
_unspecified_.
*Example Event:*
```
{
"change": "unspecified"
}
```
## 0x80000002. MODE
Sent whenever the binding mode changes. The event consists of a single object