From 0c3899ce8015e7ad469c73dae16a66b1d36e6141 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 5 May 2025 11:21:01 +1000 Subject: hyprland: fix read errors idk why but sometimes it splits the output into two so it cant json.parse it --- services/Hyprland.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/Hyprland.qml b/services/Hyprland.qml index f0a0a97..a366e54 100644 --- a/services/Hyprland.qml +++ b/services/Hyprland.qml @@ -40,9 +40,8 @@ Singleton { Process { id: getClients - command: ["hyprctl", "-j", "clients"] + command: ["sh", "-c", "hyprctl -j clients | jq -c"] stdout: SplitParser { - splitMarker: "" onRead: data => { const clients = JSON.parse(data); const rClients = root.clients; -- cgit v1.2.3-freya