Skip to content

Commit 0bc2c40

Browse files
committed
i3/ipc: add usage example for I3IpcListener
1 parent 4714191 commit 0bc2c40

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/x11/i3/ipc/listener.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@
2424
namespace qs::i3::ipc {
2525

2626
///! I3/Sway IPC event listener
27+
/// #### Example
28+
/// ```qml
29+
/// I3IpcListener {
30+
/// subscriptions: ["input"]
31+
/// onIpcEvent: function (event) {
32+
/// handleInputEvent(event.data)
33+
/// }
34+
/// }
35+
/// ```
2736
class I3IpcListener: public PostReloadHook {
2837
Q_OBJECT;
2938
// clang-format off

0 commit comments

Comments
 (0)