summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/shell/quickshell/Services
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/Services')
-rw-r--r--accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml3
-rw-r--r--accounts/gkleen@sif/shell/quickshell/Services/Worktime.qml9
2 files changed, 12 insertions, 0 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml b/accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml
index 58201bd2..6dbff134 100644
--- a/accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml
+++ b/accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml
@@ -11,6 +11,7 @@ Singleton {
11 property var outputs: {} 11 property var outputs: {}
12 property var keyboardLayouts: {} 12 property var keyboardLayouts: {}
13 property var windows: [] 13 property var windows: []
14 property var casts: []
14 readonly property string socketPath: Quickshell.env("NIRI_SOCKET") 15 readonly property string socketPath: Quickshell.env("NIRI_SOCKET")
15 16
16 function refreshOutputs() { 17 function refreshOutputs() {
@@ -71,6 +72,8 @@ Singleton {
71 eventWindowLayoutsChanged(event.WindowLayoutsChanged); 72 eventWindowLayoutsChanged(event.WindowLayoutsChanged);
72 else if (event.WindowFocusTimestampChanged) 73 else if (event.WindowFocusTimestampChanged)
73 eventWindowFocusTimestampChanged(event.WindowFocusTimestampChanged); 74 eventWindowFocusTimestampChanged(event.WindowFocusTimestampChanged);
75 else if (event.CastsChanged)
76 root.casts = event.CastsChanged.casts
74 else if (event.Ok && !eventStreamSocket.acked) { eventStreamSocket.acked = true; } 77 else if (event.Ok && !eventStreamSocket.acked) { eventStreamSocket.acked = true; }
75 else if (event.OverviewOpenedOrClosed) {} 78 else if (event.OverviewOpenedOrClosed) {}
76 else if (event.ConfigLoaded) {} 79 else if (event.ConfigLoaded) {}
diff --git a/accounts/gkleen@sif/shell/quickshell/Services/Worktime.qml b/accounts/gkleen@sif/shell/quickshell/Services/Worktime.qml
index fdb45aa0..d98378f1 100644
--- a/accounts/gkleen@sif/shell/quickshell/Services/Worktime.qml
+++ b/accounts/gkleen@sif/shell/quickshell/Services/Worktime.qml
@@ -20,6 +20,15 @@ Singleton {
20 command: "today" 20 command: "today"
21 } 21 }
22 22
23 IpcHandler {
24 target: "Worktime"
25
26 function refresh(): void {
27 time.running = true;
28 today.running = true;
29 }
30 }
31
23 component CommandState : Scope { 32 component CommandState : Scope {
24 id: commandState 33 id: commandState
25 34