swayipc_types/
event.rs

1use serde::Serialize;
2
3#[non_exhaustive]
4#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug, Serialize)]
5#[serde(rename_all = "snake_case")]
6pub enum EventType {
7    /// Sent whenever an event involving a workspace occurs such as
8    /// initialization of a new workspace or a different workspace gains focus.
9    Workspace,
10    /// Sent whenever an output is added, removed, or its configuration is changed.
11    Output,
12    /// Sent whenever the binding mode changes.
13    Mode,
14    /// Sent whenever an event involving a view occurs such as being reparented,
15    /// focused, or closed.
16    Window,
17    /// Sent whenever a bar config changes.
18    #[serde(rename = "barconfig_update")]
19    BarConfigUpdate,
20    /// Sent when a configured binding is executed.
21    Binding,
22    /// Sent when the ipc shuts down because sway is exiting.
23    Shutdown,
24    /// Sent when an ipc client sends a SEND_TICK message.
25    Tick,
26    /// Sent when the visibility of a bar should change due to a modifier.
27    BarStateUpdate,
28    /// Sent when something related to input devices changes.
29    Input,
30}