waybar/protocol/dwl-ipc-unstable-v2.xml

167 lines
6.5 KiB
XML
Raw Permalink Normal View History

2023-04-11 03:50:21 +02:00
<?xml version="1.0" encoding="utf-8"?>
<!--
This is largely ripped from somebar's ipc patchset; just with some personal modifications.
I would probably just submit raphi's patchset but I don't think that would be polite.
-->
2023-05-24 23:27:50 +02:00
<protocol name="dwl_ipc_unstable_v2">
2023-04-11 03:50:21 +02:00
<description summary="inter-proccess-communication about dwl's state">
2023-05-24 23:27:50 +02:00
This protocol allows clients to update and get updates from dwl.
2023-04-11 03:50:21 +02:00
Warning! The protocol described in this file is experimental and
backward incompatible changes may be made. Backward compatible
changes may be added together with the corresponding interface
version bump.
Backward incompatible changes are done by bumping the version
number in the protocol and interface names and resetting the
interface version. Once the protocol is to be declared stable,
the 'z' prefix and the version number in the protocol and
interface names are removed and the interface version number is
reset.
</description>
2023-05-24 23:27:50 +02:00
<interface name="zdwl_ipc_manager_v2" version="1">
2023-04-11 03:50:21 +02:00
<description summary="manage dwl state">
This interface is exposed as a global in wl_registry.
2023-05-24 23:27:50 +02:00
Clients can use this interface to get a dwl_ipc_output.
After binding the client will recieve the dwl_ipc_manager.tags and dwl_ipc_manager.layout events.
The dwl_ipc_manager.tags and dwl_ipc_manager.layout events expose tags and layouts to the client.
2023-04-11 03:50:21 +02:00
</description>
<request name="release" type="destructor">
2023-05-24 23:27:50 +02:00
<description summary="release dwl_ipc_manager">
Indicates that the client will not the dwl_ipc_manager object anymore.
2023-04-11 03:50:21 +02:00
Objects created through this instance are not affected.
</description>
</request>
<request name="get_output">
2023-05-24 23:27:50 +02:00
<description summary="get a dwl_ipc_outout for a wl_output">
Get a dwl_ipc_outout for the specified wl_output.
2023-04-11 03:50:21 +02:00
</description>
2023-05-24 23:27:50 +02:00
<arg name="id" type="new_id" interface="zdwl_ipc_output_v2"/>
2023-04-11 03:50:21 +02:00
<arg name="output" type="object" interface="wl_output"/>
</request>
2023-05-24 23:27:50 +02:00
<event name="tags">
<description summary="Announces tag amount">
2023-04-11 03:50:21 +02:00
This event is sent after binding.
A roundtrip after binding guarantees the client recieved all tags.
</description>
2023-05-24 23:27:50 +02:00
<arg name="amount" type="uint"/>
2023-04-11 03:50:21 +02:00
</event>
<event name="layout">
<description summary="Announces a layout">
This event is sent after binding.
A roundtrip after binding guarantees the client recieved all layouts.
</description>
<arg name="name" type="string"/>
</event>
</interface>
2023-05-24 23:27:50 +02:00
<interface name="zdwl_ipc_output_v2" version="1">
2023-04-11 03:50:21 +02:00
<description summary="control dwl output">
Observe and control a dwl output.
Events are double-buffered:
2023-05-24 23:27:50 +02:00
Clients should cache events and redraw when a dwl_ipc_output.frame event is sent.
2023-04-11 03:50:21 +02:00
Request are not double-buffered:
The compositor will update immediately upon request.
</description>
<enum name="tag_state">
<entry name="none" value="0" summary="no state"/>
<entry name="active" value="1" summary="tag is active"/>
<entry name="urgent" value="2" summary="tag has at least one urgent client"/>
</enum>
<request name="release" type="destructor">
2023-05-24 23:27:50 +02:00
<description summary="release dwl_ipc_outout">
Indicates to that the client no longer needs this dwl_ipc_output.
2023-04-11 03:50:21 +02:00
</description>
</request>
<event name="toggle_visibility">
<description summary="Toggle client visibilty">
Indicates the client should hide or show themselves.
If the client is visible then hide, if hidden then show.
</description>
</event>
<event name="active">
<description summary="Update the selected output.">
Indicates if the output is active. Zero is invalid, nonzero is valid.
</description>
<arg name="active" type="uint"/>
</event>
<event name="tag">
<description summary="Update the state of a tag.">
Indicates that a tag has been updated.
</description>
<arg name="tag" type="uint" summary="Index of the tag"/>
<arg name="state" type="uint" enum="tag_state" summary="The state of the tag."/>
<arg name="clients" type="uint" summary="The number of clients in the tag."/>
<arg name="focused" type="uint" summary="If there is a focused client. Nonzero being valid, zero being invalid."/>
</event>
<event name="layout">
<description summary="Update the layout.">
Indicates a new layout is selected.
</description>
<arg name="layout" type="uint" summary="Index of the layout."/>
</event>
<event name="title">
<description summary="Update the title.">
Indicates the title has changed.
</description>
<arg name="title" type="string" summary="The new title name."/>
</event>
2023-05-24 23:27:50 +02:00
<event name="appid" since="1">
2023-04-11 03:50:21 +02:00
<description summary="Update the appid.">
Indicates the appid has changed.
</description>
<arg name="appid" type="string" summary="The new appid."/>
</event>
2023-05-24 23:27:50 +02:00
<event name="layout_symbol" since="1">
2023-04-11 03:50:21 +02:00
<description summary="Update the current layout symbol">
2023-05-24 23:27:50 +02:00
Indicates the layout has changed. Since layout symbols are dynamic.
As opposed to the zdwl_ipc_manager.layout event, this should take precendence when displaying.
You can ignore the zdwl_ipc_output.layout event.
2023-04-11 03:50:21 +02:00
</description>
<arg name="layout" type="string" summary="The new layout"/>
</event>
<event name="frame">
<description summary="The update sequence is done.">
Indicates that a sequence of status updates have finished and the client should redraw.
</description>
</event>
<request name="set_tags">
<description summary="Set the active tags of this output"/>
<arg name="tagmask" type="uint" summary="bitmask of the tags that should be set."/>
<arg name="toggle_tagset" type="uint" summary="toggle the selected tagset, zero for invalid, nonzero for valid."/>
</request>
<request name="set_client_tags">
<description summary="Set the tags of the focused client.">
The tags are updated as follows:
new_tags = (current_tags AND and_tags) XOR xor_tags
</description>
<arg name="and_tags" type="uint"/>
<arg name="xor_tags" type="uint"/>
</request>
2023-05-24 23:27:50 +02:00
<request name="set_layout">
<description summary="Set the layout of this output"/>
<arg name="index" type="uint" summary="index of a layout recieved by dwl_ipc_manager.layout"/>
</request>
2023-04-11 03:50:21 +02:00
</interface>
</protocol>