i3ipc-0.1.0.1: A type-safe wrapper around i3's IPC

Safe HaskellNone
LanguageHaskell2010

I3IPC.Subscribe

Description

Describes the different kinds of events one can subscribe to.

Synopsis

Documentation

data Subscribe Source #

Subscribe from i3 have the following types (https:/i3wm.orgdocs/ipc.html#_events)

Constructors

Workspace

Sent 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

Sent when RandR issues a change notification (of either screens, outputs, CRTCs or output properties).

Mode

Sent whenever i3 changes its binding mode.

Window

Sent 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.

BarConfigUpdate

Sent when the hidden_state or mode field in the barconfig of any bar instance was updated and when the config is reloaded.

Binding

Sent when a configured command binding is triggered with the keyboard or mouse

Shutdown

Sent when the ipc shuts down because of a restart or exit by user command

Tick

Sent when the ipc client subscribes to the tick event (with "first": true) or when any ipc client sends a SEND_TICK message (with "first": false).

Instances
Enum Subscribe Source # 
Instance details

Defined in I3IPC.Subscribe

Eq Subscribe Source # 
Instance details

Defined in I3IPC.Subscribe

Show Subscribe Source # 
Instance details

Defined in I3IPC.Subscribe

Generic Subscribe Source # 
Instance details

Defined in I3IPC.Subscribe

Associated Types

type Rep Subscribe :: Type -> Type #

ToJSON Subscribe Source # 
Instance details

Defined in I3IPC.Subscribe

type Rep Subscribe Source # 
Instance details

Defined in I3IPC.Subscribe

type Rep Subscribe = D1 (MetaData "Subscribe" "I3IPC.Subscribe" "i3ipc-0.1.0.1-B04ng0kFm2eHeDNmTEusXe" False) (((C1 (MetaCons "Workspace" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Output" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "Mode" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Window" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "BarConfigUpdate" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Binding" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "Shutdown" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Tick" PrefixI False) (U1 :: Type -> Type))))