@@ -9,41 +9,32 @@ namespace qs::i3::ipc {
9
9
// /! I3/Sway monitors
10
10
class I3Monitor : public QObject {
11
11
Q_OBJECT;
12
-
12
+ // clang-format off
13
13
// / The ID of this monitor
14
14
Q_PROPERTY (qint32 id READ id NOTIFY idChanged);
15
15
// / The name of this monitor
16
16
Q_PROPERTY (QString name READ name NOTIFY nameChanged);
17
17
// / Wether this monitor is turned on or not
18
18
Q_PROPERTY (bool power READ power NOTIFY powerChanged);
19
-
20
19
// / The current workspace
21
- Q_PROPERTY (qs::i3::ipc::I3Workspace* focusedWorkspace READ focusedWorkspace NOTIFY
22
- focusedWorkspaceChanged);
23
-
20
+ Q_PROPERTY (qs::i3::ipc::I3Workspace* focusedWorkspace READ focusedWorkspace NOTIFY focusedWorkspaceChanged);
24
21
// / The X coordinate of this monitor inside the monitor layout
25
22
Q_PROPERTY (qint32 x READ x NOTIFY xChanged);
26
-
27
23
// / The Y coordinate of this monitor inside the monitor layout
28
24
Q_PROPERTY (qint32 y READ y NOTIFY yChanged);
29
-
30
25
// / The width in pixels of this monitor
31
26
Q_PROPERTY (qint32 width READ width NOTIFY widthChanged);
32
-
33
27
// / The height in pixels of this monitor
34
28
Q_PROPERTY (qint32 height READ height NOTIFY heightChanged);
35
-
36
29
// / The scaling factor of this monitor, 1 means it runs at native resolution
37
30
Q_PROPERTY (qreal scale READ scale NOTIFY scaleChanged);
38
-
39
31
// / Whether this monitor is currently in focus
40
32
Q_PROPERTY (bool focused READ focused NOTIFY focusedChanged);
41
-
42
33
// / Last JSON returned for this monitor, as a JavaScript object.
43
34
// /
44
35
// / This updates every time Quickshell receives an `output` event from i3/Sway
45
36
Q_PROPERTY (QVariantMap lastIpcObject READ lastIpcObject NOTIFY lastIpcObjectChanged);
46
-
37
+ // clang-format on
47
38
QML_ELEMENT;
48
39
QML_UNCREATABLE (" I3Monitors must be retrieved from the I3Ipc object." );
49
40
0 commit comments