From e4d764aed28d52aa89ac892903771140bd09d00d Mon Sep 17 00:00:00 2001 From: Jean Tinland Date: Fri, 19 Jan 2024 21:44:24 +0100 Subject: [PATCH] Strip 00000 in Yabai.getWindows before json parsing --- lib/yabai.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/yabai.js b/lib/yabai.js index bf1544f2..47697d9e 100644 --- a/lib/yabai.js +++ b/lib/yabai.js @@ -42,7 +42,7 @@ export async function getSpaces() { export async function getWindows() { const json = await Uebersicht.run(`${yabaiPath} -m query --windows`); - const cleanedJson = json.replace(/\.|\\n/g, ""); + const cleanedJson = json.replace(/\.|\\n/g, "").replace(/00000/g, "0"); return Utils.parseJson(cleanedJson); }