Add new subscribe event 'mode' for binding mode changes
Introducing a new event to subscribe called mode. It's fired up when i3 changes binding mode (like switching from default to resize). IPC guide adjusted also.
This commit is contained in:
committed by
Michael Stapelberg
parent
8c8fce82e5
commit
7cffd79140
14
docs/ipc
14
docs/ipc
@ -610,6 +610,8 @@ workspace (0)::
|
||||
output (1)::
|
||||
Sent when RandR issues a change notification (of either screens,
|
||||
outputs, CRTCs or output properties).
|
||||
mode (2)::
|
||||
Sent whenever i3 changes its binding mode.
|
||||
|
||||
*Example:*
|
||||
--------------------------------------------------------------------
|
||||
@ -651,6 +653,18 @@ This event consists of a single serialized map containing a property
|
||||
{ "change": "unspecified" }
|
||||
---------------------------
|
||||
|
||||
=== mode event
|
||||
|
||||
This event consists of a single serialized map containing a property
|
||||
+change (string)+ which holds the name of current mode in use. The name
|
||||
is the same as specified in config when creating a mode. The default
|
||||
mode is simply named default.
|
||||
|
||||
*Example:*
|
||||
---------------------------
|
||||
{ "change": "default" }
|
||||
---------------------------
|
||||
|
||||
== See also
|
||||
|
||||
For some languages, libraries are available (so you don’t have to implement
|
||||
|
Reference in New Issue
Block a user