Module I3ipc.Event
Type definitions for the events that can be subscribed to.
type workspace_change=|Focus|Init|Empty|Urgenttype workspace_event_info={change : workspace_change;current : Reply.node option;old : Reply.node option;}type output_change=|Unspecifiedtype output_event_info={change : output_change;}type mode_event_info={change : string;pango_markup : bool;}type window_change=|New|Close|Focus|Title|FullscreenMode|Move|Floating|Urgent|Marktype window_event_info={change : window_change;container : Reply.node;}type bar_config_event_info={bar_config : Reply.bar_config;}type binding_change=|Runtype input_type=|Keyboard|Mousetype binding={command : string;event_state_mask : string list;input_code : int;mods : string list option;symbol : string option;input_type : input_type;}type binding_event_info={change : binding_change;binding : binding;}type shutdown_reason=|Restarti3 is shutting down due to a restart requested by the user
|Exiti3 is shutting down due to an exit requested by the user
type tick_event_info={first : bool;payload : string;}type t=|Workspace of workspace_event_infoSent when the user switches to a different workspace, when a new workspace is initialized or when a workspace is removed (because the last client vanished).
|Output of output_event_infoSent when RandR issues a change notification (of either screens, outputs, CRTCs or output properties).
|Mode of mode_event_infoSent whenever i3 changes its binding mode.
|Window of window_event_infoSent when a client’s window is successfully reparented (that is when i3 has finished fitting it into a container), when a window received input focus or when certain properties of the window have changed.
|BarConfig of bar_config_event_infoSent when the hidden_state or mode field in the barconfig of any bar instance was updated and when the config is reloaded.
|Binding of binding_event_infoSent when a configured command binding is triggered with the keyboard or mouse
|Shutdown of shutdown_reasonSent when the ipc shuts down because of a restart or exit by user command.
Important note: immediately after the client program receives a
Shutdownevent i3 wil close the socket with the client and an exceptionProtocol_errorwill be raised by this library: if you want your program survive an i3 restart, you must subscribe to this event and handle the subsequent exception.|Tick of tick_event_infoThis event is triggered by a subscription to tick events or by a SEND_TICK message.
Pretty-printing
val pp_workspace_change : Stdlib.Format.formatter -> workspace_change -> unitval pp_workspace_event_info : Stdlib.Format.formatter -> workspace_event_info -> unitval pp_output_change : Stdlib.Format.formatter -> output_change -> unitval pp_output_event_info : Stdlib.Format.formatter -> output_event_info -> unitval pp_mode_event_info : Stdlib.Format.formatter -> mode_event_info -> unitval pp_window_change : Stdlib.Format.formatter -> window_change -> unitval pp_window_event_info : Stdlib.Format.formatter -> window_event_info -> unitval pp_bar_config_event_info : Stdlib.Format.formatter -> bar_config_event_info -> unitval pp_binding_change : Stdlib.Format.formatter -> binding_change -> unitval pp_input_type : Stdlib.Format.formatter -> input_type -> unitval pp_binding : Stdlib.Format.formatter -> binding -> unitval pp_binding_event_info : Stdlib.Format.formatter -> binding_event_info -> unitval pp_shutdown_reason : Stdlib.Format.formatter -> shutdown_reason -> unitval pp_tick_event_info : Stdlib.Format.formatter -> tick_event_info -> unitval pp : Stdlib.Format.formatter -> t -> unit