diff options
author | Simon Ser <contact@emersion.fr> | 2023-02-01 16:19:41 +0100 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2023-02-01 11:32:57 -0500 |
commit | 40eb29e7c56b67c2112ead7f048e45220a1c2887 (patch) | |
tree | d29b0d25eafeb8e93ad3f067658d3930d0020665 /sway/sway-ipc.7.scd | |
parent | Added reference for event types to swaymsg manpage (diff) | |
download | sway-40eb29e7c56b67c2112ead7f048e45220a1c2887.tar.gz sway-40eb29e7c56b67c2112ead7f048e45220a1c2887.tar.zst sway-40eb29e7c56b67c2112ead7f048e45220a1c2887.zip |
ipc: add support for output event
For compatibility with i3 [1].
[1]: https://i3wm.org/docs/ipc.html#_output_event
Diffstat (limited to 'sway/sway-ipc.7.scd')
-rw-r--r-- | sway/sway-ipc.7.scd | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sway/sway-ipc.7.scd b/sway/sway-ipc.7.scd index 9121f679..2e903988 100644 --- a/sway/sway-ipc.7.scd +++ b/sway/sway-ipc.7.scd | |||
@@ -1445,6 +1445,9 @@ available: | |||
1445 | : workspace | 1445 | : workspace |
1446 | :[ Sent whenever an event involving a workspace occurs such as initialization | 1446 | :[ Sent whenever an event involving a workspace occurs such as initialization |
1447 | of a new workspace or a different workspace gains focus | 1447 | of a new workspace or a different workspace gains focus |
1448 | |- 0x80000001 | ||
1449 | : output | ||
1450 | : Sent when outputs are updated | ||
1448 | |- 0x80000002 | 1451 | |- 0x80000002 |
1449 | : mode | 1452 | : mode |
1450 | : Sent whenever the binding mode changes | 1453 | : Sent whenever the binding mode changes |
@@ -1565,6 +1568,20 @@ The following change types are currently available: | |||
1565 | } | 1568 | } |
1566 | ``` | 1569 | ``` |
1567 | 1570 | ||
1571 | ## 0x80000001. OUTPUT | ||
1572 | |||
1573 | Sent whenever an output is added, removed, or its configuration is changed. | ||
1574 | The event is a single object with the property _change_, which is a string | ||
1575 | containing the reason for the change. Currently, the only value for _change_ is | ||
1576 | _unspecified_. | ||
1577 | |||
1578 | *Example Event:* | ||
1579 | ``` | ||
1580 | { | ||
1581 | "change": "unspecified" | ||
1582 | } | ||
1583 | ``` | ||
1584 | |||
1568 | ## 0x80000002. MODE | 1585 | ## 0x80000002. MODE |
1569 | 1586 | ||
1570 | Sent whenever the binding mode changes. The event consists of a single object | 1587 | Sent whenever the binding mode changes. The event consists of a single object |