Qt bindings for i3wm's IPC interface. More...
#include <qi3pc.h>
Classes | |
| struct | ParseError |
| Container for the attributes of a parsing error from i3wm when trying to run an unparsable command. More... | |
Public Types | |
| enum class | IpcEvent : quint32 { Workspace = I3_IPC_EVENT_WORKSPACE , Output = I3_IPC_EVENT_OUTPUT , Mode = I3_IPC_EVENT_MODE , Window = I3_IPC_EVENT_WINDOW , BarUpdate = I3_IPC_EVENT_BARCONFIG_UPDATE , Binding = I3_IPC_EVENT_BINDING , Shutdown = I3_IPC_EVENT_SHUTDOWN , Tick = I3_IPC_EVENT_TICK } |
| Types of events offered by i3wm's IPC API. More... | |
| enum class | IpcType : quint32 { Command = I3_IPC_REPLY_TYPE_COMMAND , Workspaces = I3_IPC_REPLY_TYPE_WORKSPACES , Subscribe = I3_IPC_REPLY_TYPE_SUBSCRIBE , Outputs = I3_IPC_REPLY_TYPE_OUTPUTS , Tree = I3_IPC_REPLY_TYPE_TREE , Marks = I3_IPC_REPLY_TYPE_MARKS , BarConfig = I3_IPC_REPLY_TYPE_BAR_CONFIG , Version = I3_IPC_REPLY_TYPE_VERSION , BindingModes = I3_IPC_REPLY_TYPE_BINDING_MODES , Config = I3_IPC_REPLY_TYPE_CONFIG , Tick = I3_IPC_REPLY_TYPE_TICK , Sync = I3_IPC_REPLY_TYPE_SYNC , BindingState = I3_IPC_REPLY_TYPE_GET_BINDING_STATE } |
| Types of message/replies the API send/expect to/from i3wm. More... | |
| enum class | WorkspaceChange { Empty , Focus , Init , Move , Reload , Rename , Restored , Urgent , Unknown } |
| Types of change a workspace event can have. More... | |
| enum class | OutputChange { Unspecified , Unknown } |
| Types of change an output event can have. More... | |
| enum class | WindowChange { New , Close , Focus , Title , Fullscreen , Move , Floating , Urgent , Mark , Unknown } |
| Types of change a window event can have. More... | |
| enum class | ShutdownChange { Restart , Exit , Unknown } |
| Types of change a shutdown event can have. More... | |
| enum class | BindingChange { Run , Unknown } |
| Types of change a binding event can have. More... | |
| using | DataObject = std::optional<std::pair<QJsonObject, qint64>> |
| Optional pair of a JSON object with its last update time. | |
| using | DataArray = std::optional<std::pair<QJsonArray, qint64>> |
| Optional pair of a JSON array with its last update time. | |
| using | DataString = std::optional<std::pair<QString, qint64>> |
| Optional pair of a string with its last update time. | |
| using | Error = std::optional<ParseError> |
| Optional qi3pc::ParseError. The optional is empty when the error could not be parsed. | |
| using | CommandResults = std::vector<std::pair<bool, Error>> |
| Pairs of qi3pc::Error and boolean. | |
| using | Message = std::optional<std::pair<QJsonDocument, quint32>> |
| Optional pair of a JSON document with a qi3pc::IpcType received with a message or an event before it has been processed. | |
Public Slots | |
| void | fetchWorkspaces () |
| Signal to emit to trigger an update of the list of workspace cache. | |
| void | fetchTree () |
| Signal to emit to trigger an update of the (cached) layout tree. | |
| void | fetchOutputs () |
| Signal to emit to trigger an update of the (cached) outputs. | |
| void | fetchMarks () |
| Signal to emit to trigger an update of the (cached) list of marks. | |
| void | fetchBarConfig (const QString &id) |
| Signal to emit to update the (cached) configuration of a certain bar. | |
| void | fetchBarConfigs () |
| Signal to emit to update the list of bar configurations. | |
| void | fetchVersion () |
| Signal to emit to trigger a cache update for the i3wm version. | |
| void | fetchBindingModes () |
| Signal to emit to trigger an update of the (cached) list of modes. | |
| void | fetchConfig () |
| Signal to emit to trigger an update of the (cached) config. | |
| void | fetchBindingState () |
| Request update of the (cached) binding state. | |
Signals | |
| void | commandRan (qi3pc::CommandResults result) |
| A command have been ran by i3. | |
| void | tickSent (bool success) |
| A tick message have been replied to by i3. | |
| void | synced (bool success) |
| A sync message have been replied to by i3. | |
| void | subscribed (bool success) |
| A subscribe message have been replied to. | |
| void | workspaceEvent (qi3pc::WorkspaceChange change, const QJsonObject ¤t, const QJsonObject &old) |
| The workspaces changed. | |
| void | outputEvent (qi3pc::OutputChange change) |
| Signal emitted when the output(s) change. | |
| void | modeEvent (QString change, bool pango) |
| The binding mode changes. | |
| void | windowEvent (qi3pc::WindowChange change, const QJsonObject &container) |
| A window changed. | |
| void | barUpdateEvent (const QJsonObject &doc) |
| A bar's configuration have been updated. | |
| void | bindingEvent (qi3pc::BindingChange change, const QJsonObject &binding, const QString &mode) |
| A binding have been triggered to run a command. | |
| void | shutdownEvent (qi3pc::ShutdownChange change) |
| The ipc socket is about to shutdown. | |
| void | tickEvent (const QString &payload) |
| A tick event is received from i3. | |
| void | workspacesUpdated (const qi3pc::DataArray &workspaces) |
| The (cached) list of workspaces have been updated. | |
| void | treeUpdated (const qi3pc::DataObject &tree) |
| The layout tree cache have been updated. | |
| void | outputsUpdated (const qi3pc::DataArray &outputs) |
| The (cached) outputs have been updated. | |
| void | marksUpdated (const qi3pc::DataArray &marks) |
| The (cached) list of marks have been updated. | |
| void | barConfigUpdated (const QJsonObject &config) |
| A specific bar's (cached) config have been updated. At this point the configuration for the bar has been cached. | |
| void | newBarConfig (const QString &id) |
| A new bar config have been added to the cache. | |
| void | versionUpdated (const qi3pc::DataObject &version) |
| The (cached) i3 version have been updated. | |
| void | bindingModesUpdated (const qi3pc::DataArray &modes) |
| The (cached) list of modes have been updated. | |
| void | configUpdated (const qi3pc::DataObject &config) |
| The (cached) config have been updated. | |
| void | bindingStateUpdated (const qi3pc::DataString &state) |
| The (cached) current binding state have been updated. | |
Public Member Functions | |
| qi3pc (QObject *parent=nullptr) | |
| Construct a qi3pc object. | |
| qi3pc (const QString &socketPath, QObject *parent=nullptr) | |
| Construct a qi3pc object connected to the provided socket. | |
| virtual | ~qi3pc () |
| Simple destructor for the qi3pc class. | |
| bool | connect (int msecs=1500) |
| Start listening to messages and events from the window manager. | |
| bool | isConnected () |
| Check if the connection to the ipc socket is established. | |
| bool | disconnect (int msecs=1500) |
| Stop listening to messages and events from the window manager. | |
| void | subscribe (const QStringList &events) |
| Subscribe to a list of events. | |
| QString | socketPath () const |
| Get the socket path selected at construction. | |
| template<IpcType Type> | |
| void | sendMessage (const QByteArray &payload=QByteArray()) |
| Send a message with the specified type and payload to i3. | |
| const DataArray & | workspaces () const |
| Get the list of (cached) workspaces. | |
| const DataObject & | tree () const |
| Get the (cached) i3 layout tree. | |
| const DataArray & | outputs () const |
| Get the (cached) list of outputs. | |
| const DataArray & | marks () const |
| Get the (cached) list of set marks. | |
| const DataObject & | barConfigs () const |
| Get the (cached) list of all bar configurations. | |
| const DataObject & | version () const |
| Get the (cached) i3 version object. | |
| const DataArray & | bindingModes () const |
| Get the (cached) list of binding modes. | |
| const DataObject & | config () const |
| Get the (cached) data read from the config file. | |
| const DataString & | bindingState () const |
| Get the (cached) binding state. | |
Static Public Member Functions | |
| static QString | FindSocketPath () |
| Find the path to the i3 ipc local unix socket. | |
| static QString | FindSocketPathFromI3Binary () |
| Find the path to the i3 ipc local unix socket using the i3 binary. | |
Static Public Attributes | |
| static constexpr auto | IpcMagicString = std::string("i3-ipc") |
| static constexpr auto | IpcMagicLength = IpcMagicString.length() |
Private Member Functions | |
| Message | processMessage (QLocalSocket &socket) |
| Read one message using the socket parameter. | |
| void | processEvent () |
| Read data from the event socket. | |
| void | processReply () |
| Read data from the message socket. | |
| void | processWorkspaceEvent (const QJsonDocument &doc) |
| Handle data received from a workspace event. | |
| void | processOutputEvent (const QJsonDocument &doc) |
| Handle data received from an output event. | |
| void | processModeEvent (const QJsonDocument &doc) |
| Handle data received from a mode event. | |
| void | processWindowEvent (const QJsonDocument &doc) |
| Handle data received from a window event. | |
| void | processBarUpdateEvent (const QJsonDocument &doc) |
| Handle data received from a bar update event. | |
| void | processBindingEvent (const QJsonDocument &doc) |
| Handle data received from a binding event. | |
| void | processShutdownEvent (const QJsonDocument &doc) |
| Handle data received from a shutdowm event. | |
| void | processTickEvent (const QJsonDocument &doc) |
| Handle data received from a tick event. | |
| void | processCommandReply (const QJsonDocument &doc) |
| Handle data received from a run command reply. | |
| void | processWorkspaceReply (const QJsonDocument &doc) |
| Handle data received from a workspace reply. | |
| void | processOutputReply (const QJsonDocument &doc) |
| Handle data received from an output reply. | |
| void | processTreeReply (const QJsonDocument &doc) |
| Handle data received from a tree reply. | |
| void | processMarkReply (const QJsonDocument &doc) |
| Handle data received from a mark reply. | |
| void | processBarConfigReply (const QJsonDocument &doc) |
| Handle data received from a bar config reply. | |
| void | processVersionReply (const QJsonDocument &doc) |
| Handle data received from a version reply. | |
| void | processBindingModesReply (const QJsonDocument &doc) |
| Handle data received in a binding mode reply. | |
| void | processConfigReply (const QJsonDocument &doc) |
| Handle data received from a config reply. | |
| void | processTickReply (const QJsonDocument &doc) |
| Handle data received from a tick reply. | |
| void | processSyncReply (const QJsonDocument &doc) |
| Handle data received from a sync reply. | |
| void | processBindingStateReply (const QJsonDocument &doc) |
| Handle data received from a binding state event reply. | |
Static Private Member Functions | |
| static WorkspaceChange | WorkspaceChangeFromString (const QString &s) |
| Convert a string into a workspace change object. | |
| static WindowChange | WindowChangeFromString (const QString &s) |
| Convert a string into a window change object. | |
| static ShutdownChange | ShutdownChangeFromString (const QString &s) |
| Convert a string into a shutdown change object. | |
| static OutputChange | OutputChangeFromString (const QString &s) |
| Convert a string into an output change object. | |
| static BindingChange | BindingChangeFromString (const QString &s) |
| Convert a string into a binding change object. | |
| static void | WritePayload (QLocalSocket &socket, const QByteArray &payload, IpcType type) |
| Send a message with the specified type and payload to i3 using the specified socket. | |
Private Attributes | |
| QString | m_socketPath |
| QLocalSocket | m_eventSocket |
| QLocalSocket | m_messageSocket |
| DataObject | m_tree |
| DataArray | m_workspaces |
| DataArray | m_outputs |
| DataArray | m_marks |
| DataObject | m_barConfigs |
| DataObject | m_version |
| DataArray | m_bindingModes |
| DataString | m_bindingState |
| DataObject | m_config |
Qt bindings for i3wm's IPC interface.
qi3pc is a modern C++20 library providing idiomatics Qt bindings to i3wm's IPC interface.
| using qi3pc::DataObject = std::optional<std::pair<QJsonObject, qint64>> |
| using qi3pc::DataArray = std::optional<std::pair<QJsonArray, qint64>> |
| using qi3pc::DataString = std::optional<std::pair<QString, qint64>> |
| using qi3pc::Error = std::optional<ParseError> |
Optional qi3pc::ParseError. The optional is empty when the error could not be parsed.
| using qi3pc::CommandResults = std::vector<std::pair<bool, Error>> |
Pairs of qi3pc::Error and boolean.
For each element, if the boolean is false, the command was ran successfully. Otherwise information about the parse error encountered is in the second element.
| using qi3pc::Message = std::optional<std::pair<QJsonDocument, quint32>> |
Optional pair of a JSON document with a qi3pc::IpcType received with a message or an event before it has been processed.
|
strong |
Types of events offered by i3wm's IPC API.
See i3 docs.
|
strong |
Types of message/replies the API send/expect to/from i3wm.
See i3 docs.
|
strong |
Types of change a workspace event can have.
Mapping of the change property received in a workspace event.
|
strong |
|
strong |
Types of change a window event can have.
Mapping of the change property received in a window event.
|
strong |
|
strong |
|
explicit |
|
explicit |
Construct a qi3pc object connected to the provided socket.
| socketPath | The path to the server to use (e.g. /tmp/some-service.socket) |
| parent | Parent of the qi3pc object to create (matching Qt conventions). |
Definition at line 32 of file qi3pc.cpp.
References m_barConfigs, m_eventSocket, m_messageSocket, m_socketPath, processEvent(), and processReply().
|
virtual |
Simple destructor for the qi3pc class.
Disconnects the used sockets.
Definition at line 48 of file qi3pc.cpp.
References m_eventSocket, and m_messageSocket.
| bool qi3pc::connect | ( | int | msecs = 1500 | ) |
Start listening to messages and events from the window manager.
| msecs | A duration in milliseconds. This method may wait up to twice that duraction. |
This method may wait up to msecs milliseconds for the connection to be established. If it takes more than msecs milliseconds to connect, the connection might be established later, but the returned value will not reflect that.
Definition at line 602 of file qi3pc.cpp.
References m_eventSocket, m_messageSocket, and m_socketPath.
| bool qi3pc::isConnected | ( | ) |
Check if the connection to the ipc socket is established.
Definition at line 643 of file qi3pc.cpp.
References m_eventSocket, and m_messageSocket.
| bool qi3pc::disconnect | ( | int | msecs = 1500 | ) |
Stop listening to messages and events from the window manager.
| msecs | A duration in milliseconds. This method may wait up to twice that duraction. |
Definition at line 623 of file qi3pc.cpp.
References m_eventSocket, and m_messageSocket.
| void qi3pc::subscribe | ( | const QStringList & | events | ) |
Subscribe to a list of events.
| events | A list of strings with the events to subscribe to. |
Definition at line 656 of file qi3pc.cpp.
References m_eventSocket, Subscribe, and WritePayload().
|
static |
Find the path to the i3 ipc local unix socket.
First tries to read the I3SOCK environment variable. If I3SOCK is empty or not set, calls
Definition at line 509 of file qi3pc.cpp.
References FindSocketPathFromI3Binary().
|
static |
| QString qi3pc::socketPath | ( | ) | const |
Get the socket path selected at construction.
Definition at line 533 of file qi3pc.cpp.
References m_socketPath.
|
inline |
Send a message with the specified type and payload to i3.
| Type | The type of the message to send. |
| payload | The content of the message. |
Available message types.
Definition at line 375 of file qi3pc.h.
References m_eventSocket, m_messageSocket, Subscribe, Tick, and WritePayload().
| const qi3pc::DataArray & qi3pc::workspaces | ( | ) | const |
Get the list of (cached) workspaces.
Definition at line 540 of file qi3pc.cpp.
References m_workspaces.
| const qi3pc::DataObject & qi3pc::tree | ( | ) | const |
Get the (cached) i3 layout tree.
Definition at line 547 of file qi3pc.cpp.
References m_tree.
| const qi3pc::DataArray & qi3pc::outputs | ( | ) | const |
Get the (cached) list of outputs.
Definition at line 554 of file qi3pc.cpp.
References m_outputs.
| const qi3pc::DataArray & qi3pc::marks | ( | ) | const |
Get the (cached) list of set marks.
Definition at line 561 of file qi3pc.cpp.
References m_marks.
| const qi3pc::DataObject & qi3pc::barConfigs | ( | ) | const |
Get the (cached) list of all bar configurations.
Definition at line 568 of file qi3pc.cpp.
References m_barConfigs.
| const qi3pc::DataObject & qi3pc::version | ( | ) | const |
| const qi3pc::DataArray & qi3pc::bindingModes | ( | ) | const |
Get the (cached) list of binding modes.
Definition at line 582 of file qi3pc.cpp.
References m_bindingModes.
| const qi3pc::DataObject & qi3pc::config | ( | ) | const |
| const qi3pc::DataString & qi3pc::bindingState | ( | ) | const |
Get the (cached) binding state.
Definition at line 596 of file qi3pc.cpp.
References m_bindingState.
|
slot |
Signal to emit to trigger an update of the list of workspace cache.
Definition at line 690 of file qi3pc.cpp.
References sendMessage().
|
slot |
Signal to emit to trigger an update of the (cached) layout tree.
Definition at line 696 of file qi3pc.cpp.
References sendMessage().
|
slot |
Signal to emit to trigger an update of the (cached) outputs.
Definition at line 702 of file qi3pc.cpp.
References sendMessage().
|
slot |
Signal to emit to trigger an update of the (cached) list of marks.
Definition at line 708 of file qi3pc.cpp.
References sendMessage().
|
slot |
Signal to emit to update the (cached) configuration of a certain bar.
| id | String identifying to bar to update. |
Definition at line 738 of file qi3pc.cpp.
References sendMessage().
|
slot |
Signal to emit to update the list of bar configurations.
Definition at line 732 of file qi3pc.cpp.
References sendMessage().
|
slot |
Signal to emit to trigger a cache update for the i3wm version.
Definition at line 714 of file qi3pc.cpp.
References sendMessage().
|
slot |
Signal to emit to trigger an update of the (cached) list of modes.
Definition at line 720 of file qi3pc.cpp.
References sendMessage().
|
slot |
Signal to emit to trigger an update of the (cached) config.
Definition at line 726 of file qi3pc.cpp.
References sendMessage().
|
slot |
Request update of the (cached) binding state.
Definition at line 746 of file qi3pc.cpp.
References sendMessage().
|
private |
Read one message using the socket parameter.
| socket | Local unix socket from which the message is read |
Definition at line 459 of file qi3pc.cpp.
References IpcMagicLength, and IpcMagicString.
|
private |
Read data from the event socket.
Definition at line 58 of file qi3pc.cpp.
References BarUpdate, Binding, m_eventSocket, Mode, Output, processBarUpdateEvent(), processBindingEvent(), processMessage(), processModeEvent(), processOutputEvent(), processShutdownEvent(), processTickEvent(), processTickReply(), processWindowEvent(), processWorkspaceEvent(), Shutdown, Subscribe, subscribed(), Tick, Window, and Workspace.
|
private |
Read data from the message socket.
Definition at line 116 of file qi3pc.cpp.
References BarConfig, BindingModes, BindingState, Command, Config, m_messageSocket, Marks, Outputs, processBarConfigReply(), processBindingModesReply(), processBindingStateReply(), processCommandReply(), processConfigReply(), processMarkReply(), processMessage(), processOutputReply(), processSyncReply(), processTreeReply(), processVersionReply(), processWorkspaceReply(), Subscribe, Sync, Tick, Tree, Version, and Workspaces.
|
private |
Handle data received from a workspace event.
| doc | Document containing the data |
Definition at line 290 of file qi3pc.cpp.
References Unknown, WorkspaceChangeFromString(), and workspaceEvent().
|
private |
Handle data received from an output event.
| doc | Document containing the data |
Definition at line 305 of file qi3pc.cpp.
References OutputChangeFromString(), outputEvent(), and Unknown.
|
private |
Handle data received from a mode event.
| doc | Document containing the data |
Definition at line 318 of file qi3pc.cpp.
References modeEvent().
|
private |
Handle data received from a window event.
| doc | Document containing the data |
Definition at line 324 of file qi3pc.cpp.
References Unknown, WindowChangeFromString(), and windowEvent().
|
private |
Handle data received from a bar update event.
| doc | Document containing the data |
Definition at line 337 of file qi3pc.cpp.
References barUpdateEvent().
|
private |
Handle data received from a binding event.
| doc | Document containing the data |
Definition at line 343 of file qi3pc.cpp.
References BindingChangeFromString(), bindingEvent(), and Unknown.
|
private |
Handle data received from a shutdowm event.
| doc | Document containing the data |
Definition at line 356 of file qi3pc.cpp.
References ShutdownChangeFromString(), shutdownEvent(), and Unknown.
|
private |
Handle data received from a tick event.
| doc | Document containing the data |
Definition at line 369 of file qi3pc.cpp.
References tickEvent().
|
private |
Handle data received from a run command reply.
| doc | Document containing the data |
Definition at line 176 of file qi3pc.cpp.
References commandRan(), and qi3pc::ParseError::FromJSON().
|
private |
Handle data received from a workspace reply.
| doc | Document containing the data |
Definition at line 203 of file qi3pc.cpp.
References m_workspaces, and workspacesUpdated().
|
private |
Handle data received from an output reply.
| doc | Document containing the data |
Definition at line 210 of file qi3pc.cpp.
References m_outputs, and outputsUpdated().
|
private |
Handle data received from a tree reply.
| doc | Document containing the data |
Definition at line 217 of file qi3pc.cpp.
References m_tree, and treeUpdated().
|
private |
Handle data received from a mark reply.
| doc | Document containing the data |
Definition at line 224 of file qi3pc.cpp.
References m_marks, and marksUpdated().
|
private |
Handle data received from a bar config reply.
| doc | Document containing the data |
Definition at line 231 of file qi3pc.cpp.
References barConfigUpdated(), config(), m_barConfigs, and newBarConfig().
|
private |
Handle data received from a version reply.
| doc | Document containing the data |
Definition at line 250 of file qi3pc.cpp.
References m_version, and versionUpdated().
|
private |
Handle data received in a binding mode reply.
| doc | Document containing the data |
Definition at line 257 of file qi3pc.cpp.
References bindingModesUpdated(), and m_bindingModes.
|
private |
Handle data received from a config reply.
| doc | Document containing the data |
Definition at line 264 of file qi3pc.cpp.
References configUpdated(), and m_config.
|
private |
Handle data received from a tick reply.
| doc | Document containing the data |
Definition at line 271 of file qi3pc.cpp.
References tickSent().
|
private |
|
private |
Handle data received from a binding state event reply.
| doc | Document containing the data |
Definition at line 283 of file qi3pc.cpp.
References bindingStateUpdated(), and m_bindingState.
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
Convert a string into an output change object.
| s | The string to convert |
Definition at line 439 of file qi3pc.cpp.
References Unknown, and Unspecified.
|
staticprivate |
Convert a string into a binding change object.
| s | The string to convert |
|
staticprivate |
Send a message with the specified type and payload to i3 using the specified socket.
| socket | The socket where the payload should be written. |
| payload | The content to be written on the socket. |
| type | The type of the payload. |
Definition at line 671 of file qi3pc.cpp.
References IpcMagicLength, and IpcMagicString.
|
signal |
A command have been ran by i3.
| result | Pairs of boolean and optional parse error. |
Use qi3pc::sendMessage to run command with the qi3pc::IpcType::Command type.
|
signal |
A tick message have been replied to by i3.
| success |
Use qi3pc::sendMessage to send tick messages with the qi3pc::IpcType::Tick type.
|
signal |
A sync message have been replied to by i3.
| success |
Use qi3pc::sendMessage to send sync messages with the qi3pc::IpcTypeSync type.
|
signal |
A subscribe message have been replied to.
| success | Indicates whether the subscription was successfull |
|
signal |
The workspaces changed.
| change | The type of change |
| current | The current workspace |
| old | The old workspace |
|
signal |
Signal emitted when the output(s) change.
| change | The type of change |
|
signal |
The binding mode changes.
| change | The name of the current mode. |
| pango | Boolean telling whether to display the mode with pango markup. |
|
signal |
A window changed.
| change | The type of change. |
| container | The parent of the changed window. |
|
signal |
A bar's configuration have been updated.
| doc | Json object containing the bar configuration. |
|
signal |
A binding have been triggered to run a command.
| change | The type of change. |
| binding | The binding that was run. |
| mode | The name of the mode the binding was run in. |
|
signal |
The ipc socket is about to shutdown.
| change | The type of change. |
|
signal |
A tick event is received from i3.
| payload | Arbitrary payload sent with the tick message. |
|
signal |
The (cached) list of workspaces have been updated.
| workspaces | The last list of workspaces with the update time. |
References workspaces().
|
signal |
The layout tree cache have been updated.
| tree | The most recent layout tree cached and its update time. |
References tree().
|
signal |
The (cached) outputs have been updated.
| outputs | The latest list of outputs and its update time. |
References outputs().
|
signal |
The (cached) list of marks have been updated.
| marks | The most recent list of marks and the time when it was updated. |
References marks().
|
signal |
A specific bar's (cached) config have been updated. At this point the configuration for the bar has been cached.
| config | The relevant bar's configuration. |
References config().
|
signal |
A new bar config have been added to the cache.
| id | The id of the new bar. |
Only the id is stored at first. Call qi3pc::fetchBarConfig with the appropriate id to update it.
|
signal |
The (cached) i3 version have been updated.
| version | JSON object with the latest cached version and the time when it was updated. |
References version().
|
signal |
The (cached) list of modes have been updated.
| modes | The most recent list of modes and the time when it was updated. |
|
signal |
The (cached) config have been updated.
| config | The most recent config and the time when it was updated. |
References config().
|
signal |
The (cached) current binding state have been updated.
| state | The most recent binding state and the time when it was updated. |
|
staticconstexpr |
|
staticconstexpr |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |