dwl-ipc-unstable-v2.xml (7338B)
1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 This is largely ripped from somebar's ipc patchset; just with some personal modifications. 4 I would probably just submit raphi's patchset but I don't think that would be polite. 5 --> 6 <protocol name="dwl_ipc_unstable_v2"> 7 <description summary="inter-proccess-communication about dwl's state"> 8 This protocol allows clients to update and get updates from dwl. 9 10 Warning! The protocol described in this file is experimental and 11 backward incompatible changes may be made. Backward compatible 12 changes may be added together with the corresponding interface 13 version bump. 14 Backward incompatible changes are done by bumping the version 15 number in the protocol and interface names and resetting the 16 interface version. Once the protocol is to be declared stable, 17 the 'z' prefix and the version number in the protocol and 18 interface names are removed and the interface version number is 19 reset. 20 </description> 21 22 <interface name="zdwl_ipc_manager_v2" version="2"> 23 <description summary="manage dwl state"> 24 This interface is exposed as a global in wl_registry. 25 26 Clients can use this interface to get a dwl_ipc_output. 27 After binding the client will recieve the dwl_ipc_manager.tags and dwl_ipc_manager.layout events. 28 The dwl_ipc_manager.tags and dwl_ipc_manager.layout events expose tags and layouts to the client. 29 </description> 30 31 <request name="release" type="destructor"> 32 <description summary="release dwl_ipc_manager"> 33 Indicates that the client will not the dwl_ipc_manager object anymore. 34 Objects created through this instance are not affected. 35 </description> 36 </request> 37 38 <request name="get_output"> 39 <description summary="get a dwl_ipc_outout for a wl_output"> 40 Get a dwl_ipc_outout for the specified wl_output. 41 </description> 42 <arg name="id" type="new_id" interface="zdwl_ipc_output_v2"/> 43 <arg name="output" type="object" interface="wl_output"/> 44 </request> 45 46 <event name="tags"> 47 <description summary="Announces tag amount"> 48 This event is sent after binding. 49 A roundtrip after binding guarantees the client recieved all tags. 50 </description> 51 <arg name="amount" type="uint"/> 52 </event> 53 54 <event name="layout"> 55 <description summary="Announces a layout"> 56 This event is sent after binding. 57 A roundtrip after binding guarantees the client recieved all layouts. 58 </description> 59 <arg name="name" type="string"/> 60 </event> 61 </interface> 62 63 <interface name="zdwl_ipc_output_v2" version="2"> 64 <description summary="control dwl output"> 65 Observe and control a dwl output. 66 67 Events are double-buffered: 68 Clients should cache events and redraw when a dwl_ipc_output.frame event is sent. 69 70 Request are not double-buffered: 71 The compositor will update immediately upon request. 72 </description> 73 74 <enum name="tag_state"> 75 <entry name="none" value="0" summary="no state"/> 76 <entry name="active" value="1" summary="tag is active"/> 77 <entry name="urgent" value="2" summary="tag has at least one urgent client"/> 78 </enum> 79 80 <request name="release" type="destructor"> 81 <description summary="release dwl_ipc_outout"> 82 Indicates to that the client no longer needs this dwl_ipc_output. 83 </description> 84 </request> 85 86 <event name="toggle_visibility"> 87 <description summary="Toggle client visibilty"> 88 Indicates the client should hide or show themselves. 89 If the client is visible then hide, if hidden then show. 90 </description> 91 </event> 92 93 <event name="active"> 94 <description summary="Update the selected output."> 95 Indicates if the output is active. Zero is invalid, nonzero is valid. 96 </description> 97 <arg name="active" type="uint"/> 98 </event> 99 100 <event name="tag"> 101 <description summary="Update the state of a tag."> 102 Indicates that a tag has been updated. 103 </description> 104 <arg name="tag" type="uint" summary="Index of the tag"/> 105 <arg name="state" type="uint" enum="tag_state" summary="The state of the tag."/> 106 <arg name="clients" type="uint" summary="The number of clients in the tag."/> 107 <arg name="focused" type="uint" summary="If there is a focused client. Nonzero being valid, zero being invalid."/> 108 </event> 109 110 <event name="layout"> 111 <description summary="Update the layout."> 112 Indicates a new layout is selected. 113 </description> 114 <arg name="layout" type="uint" summary="Index of the layout."/> 115 </event> 116 117 <event name="title"> 118 <description summary="Update the title."> 119 Indicates the title has changed. 120 </description> 121 <arg name="title" type="string" summary="The new title name."/> 122 </event> 123 124 <event name="appid" since="1"> 125 <description summary="Update the appid."> 126 Indicates the appid has changed. 127 </description> 128 <arg name="appid" type="string" summary="The new appid."/> 129 </event> 130 131 <event name="layout_symbol" since="1"> 132 <description summary="Update the current layout symbol"> 133 Indicates the layout has changed. Since layout symbols are dynamic. 134 As opposed to the zdwl_ipc_manager.layout event, this should take precendence when displaying. 135 You can ignore the zdwl_ipc_output.layout event. 136 </description> 137 <arg name="layout" type="string" summary="The new layout"/> 138 </event> 139 140 <event name="frame"> 141 <description summary="The update sequence is done."> 142 Indicates that a sequence of status updates have finished and the client should redraw. 143 </description> 144 </event> 145 146 <request name="set_tags"> 147 <description summary="Set the active tags of this output"/> 148 <arg name="tagmask" type="uint" summary="bitmask of the tags that should be set."/> 149 <arg name="toggle_tagset" type="uint" summary="toggle the selected tagset, zero for invalid, nonzero for valid."/> 150 </request> 151 152 <request name="set_client_tags"> 153 <description summary="Set the tags of the focused client."> 154 The tags are updated as follows: 155 new_tags = (current_tags AND and_tags) XOR xor_tags 156 </description> 157 <arg name="and_tags" type="uint"/> 158 <arg name="xor_tags" type="uint"/> 159 </request> 160 161 <request name="set_layout"> 162 <description summary="Set the layout of this output"/> 163 <arg name="index" type="uint" summary="index of a layout recieved by dwl_ipc_manager.layout"/> 164 </request> 165 166 <!-- Version 2 --> 167 <event name="fullscreen" since="2"> 168 <description summary="Update fullscreen status"> 169 Indicates if the selected client on this output is fullscreen. 170 </description> 171 <arg name="is_fullscreen" type="uint" summary="If the selected client is fullscreen. Nonzero is valid, zero invalid"/> 172 </event> 173 174 <event name="floating" since="2"> 175 <description summary="Update the floating status"> 176 Indicates if the selected client on this output is floating. 177 </description> 178 <arg name="is_floating" type="uint" summary="If the selected client is floating. Nonzero is valid, zero invalid"/> 179 </event> 180 </interface> 181 </protocol>