]> git.sur5r.net Git - i3/i3.github.io/blobdiff - docs/ipc.html
release v4.6
[i3/i3.github.io] / docs / ipc.html
index 4d95ba6a5454ea1be9d44dbf7f44d026c782070c..f2ecf73a7c4534dd31167908f59b7f299583f550 100644 (file)
@@ -789,9 +789,8 @@ VGA1
 <div class="sect2">\r
 <h3 id="_marks_reply">3.7. MARKS reply</h3>\r
 <div class="paragraph"><p>The reply consists of a single array of strings for each container that has a\r
-mark. The order of that array is undefined. If more than one container has the\r
-same mark, it will be represented multiple times in the reply (the array\r
-contents are not unique).</p></div>\r
+mark. A mark can only be set on one container, so the array is unique.\r
+The order of that array is undefined.</p></div>\r
 <div class="paragraph"><p>If no window has a mark the response will be the empty array [].</p></div>\r
 </div>\r
 <div class="sect2">\r
@@ -1104,6 +1103,15 @@ window (3)
         has finished fitting it into a container).\r
 </p>\r
 </dd>\r
+<dt class="hdlist1">\r
+barconfig_update (4)\r
+</dt>\r
+<dd>\r
+<p>\r
+    Sent when the hidden_state or mode field in the barconfig of any bar\r
+    instance was updated.\r
+</p>\r
+</dd>\r
 </dl></div>\r
 <div class="paragraph"><p><strong>Example:</strong></p></div>\r
 <div class="listingblock">\r
@@ -1200,6 +1208,24 @@ window title as "urxvt").</p></div>
 }</tt></pre>\r
 </div></div>\r
 </div>\r
+<div class="sect2">\r
+<h3 id="_barconfig_update_event">4.7. barconfig_update event</h3>\r
+<div class="paragraph"><p>This event consists of a single serialized map reporting on options from the\r
+barconfig of the specified bar_id that were updated in i3. The map always\r
+consists of a property <tt>id (string)</tt>, which specifies to which bar instance the\r
+sent config update belongs, a property <tt>hidden_state (string)</tt>, which indicates\r
+the hidden_state of an i3bar instance, and a property <tt>mode (string)</tt>, which\r
+corresponds to the current mode.</p></div>\r
+<div class="paragraph"><p><strong>Example:</strong></p></div>\r
+<div class="listingblock">\r
+<div class="content">\r
+<pre><tt>{\r
+    "id": "bar-0",\r
+    "hidden_state": "hide"\r
+    "mode": "hide"\r
+}</tt></pre>\r
+</div></div>\r
+</div>\r
 </div>\r
 </div>\r
 <div class="sect1">\r