hyprland: fix read errors

idk why but sometimes it splits the output into two so it cant json.parse it
This commit is contained in:
2 * r + 2 * t 2025-05-05 11:21:01 +10:00
parent dbc81e6fbf
commit 0c3899ce80

View file

@ -40,9 +40,8 @@ Singleton {
Process { Process {
id: getClients id: getClients
command: ["hyprctl", "-j", "clients"] command: ["sh", "-c", "hyprctl -j clients | jq -c"]
stdout: SplitParser { stdout: SplitParser {
splitMarker: ""
onRead: data => { onRead: data => {
const clients = JSON.parse(data); const clients = JSON.parse(data);
const rClients = root.clients; const rClients = root.clients;