diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-05 11:21:01 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-05 11:21:01 +1000 |
| commit | 0c3899ce8015e7ad469c73dae16a66b1d36e6141 (patch) | |
| tree | 89eb26f5541b1105a9259da84a94b4ba0c0e3811 /services | |
| parent | launcher: change close anim (diff) | |
| download | caelestia-shell-0c3899ce8015e7ad469c73dae16a66b1d36e6141.tar.gz caelestia-shell-0c3899ce8015e7ad469c73dae16a66b1d36e6141.tar.bz2 caelestia-shell-0c3899ce8015e7ad469c73dae16a66b1d36e6141.zip | |
hyprland: fix read errors
idk why but sometimes it splits the output into two so it cant json.parse it
Diffstat (limited to 'services')
| -rw-r--r-- | services/Hyprland.qml | 3 |
1 files changed, 1 insertions, 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; |