summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/shell
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/gkleen@sif/shell')
-rw-r--r--accounts/gkleen@sif/shell/quickshell/Lockscreen.qml7
-rw-r--r--accounts/gkleen@sif/shell/quickshell/NotificationInhibitorWidget.qml2
-rw-r--r--accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml3
-rw-r--r--accounts/gkleen@sif/shell/quickshell/Services/Worktime.qml9
4 files changed, 13 insertions, 8 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml b/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml
index 996fd41b..fc2e1f9f 100644
--- a/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml
+++ b/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml
@@ -31,13 +31,6 @@ Scope {
31 } 31 }
32 } 32 }
33 33
34 IpcHandler {
35 target: "Lockscreen"
36
37 function setLocked(locked: bool): void { lock.locked = locked; }
38 function getLocked(): bool { return lock.locked; }
39 }
40
41 Connections { 34 Connections {
42 target: Custom.Systemd 35 target: Custom.Systemd
43 function onSleep(before: bool) { 36 function onSleep(before: bool) {
diff --git a/accounts/gkleen@sif/shell/quickshell/NotificationInhibitorWidget.qml b/accounts/gkleen@sif/shell/quickshell/NotificationInhibitorWidget.qml
index b58467b3..80cbba19 100644
--- a/accounts/gkleen@sif/shell/quickshell/NotificationInhibitorWidget.qml
+++ b/accounts/gkleen@sif/shell/quickshell/NotificationInhibitorWidget.qml
@@ -70,7 +70,7 @@ Item {
70 sourceComponent: PopupWindow { 70 sourceComponent: PopupWindow {
71 id: tooltip 71 id: tooltip
72 72
73 property bool nextVisible: NotificationManager.active && (widgetMouseArea.containsMouse || tooltipMouseArea.containsMouse) 73 property bool nextVisible: NotificationManager.active && NotificationManager.history.length > 0 && (widgetMouseArea.containsMouse || tooltipMouseArea.containsMouse)
74 74
75 anchor { 75 anchor {
76 item: widgetMouseArea 76 item: widgetMouseArea
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