summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-29 15:43:19 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-29 15:43:19 +1000
commit435f077f982ba880ce69275fee2ee4d2a19d8b67 (patch)
tree90b2dc127382c51f688b673f9bd36dc95a8edd1c
parentfeat: animated text changes (diff)
downloadcaelestia-shell-435f077f982ba880ce69275fee2ee4d2a19d8b67.tar.gz
caelestia-shell-435f077f982ba880ce69275fee2ee4d2a19d8b67.tar.bz2
caelestia-shell-435f077f982ba880ce69275fee2ee4d2a19d8b67.zip
hyprland: fix active workspace
-rw-r--r--services/Hyprland.qml14
1 files changed, 1 insertions, 13 deletions
diff --git a/services/Hyprland.qml b/services/Hyprland.qml
index 513d372..d786e62 100644
--- a/services/Hyprland.qml
+++ b/services/Hyprland.qml
@@ -12,7 +12,7 @@ Singleton {
readonly property var workspaces: Hyprland.workspaces
readonly property var monitors: Hyprland.monitors
property var activeClient: null
- property HyprlandWorkspace activeWorkspace: null
+ property HyprlandWorkspace activeWorkspace: focusedMonitor?.activeWorkspace ?? null
property HyprlandMonitor focusedMonitor: Hyprland.monitors.values.find(m => m.lastIpcObject.focused) ?? null
function reload() {
@@ -20,7 +20,6 @@ Singleton {
Hyprland.refreshMonitors();
getClients.running = true;
getActiveClient.running = true;
- getActiveWorkspace.running = true;
}
function dispatch(request: string): void {
@@ -72,15 +71,4 @@ Singleton {
}
}
}
-
- Process {
- id: getActiveWorkspace
- command: ["bash", "-c", "hyprctl -j activeworkspace | jq -c"]
- stdout: SplitParser {
- onRead: data => {
- const ws = JSON.parse(data);
- root.activeWorkspace = root.workspaces.values.find(w => w.id === ws.id) ?? null;
- }
- }
- }
}