diff --git a/lib/scripts/yabai-set-mode-server.sh b/lib/scripts/yabai-set-mode-server.sh index 083c860a..9d75c7d9 100755 --- a/lib/scripts/yabai-set-mode-server.sh +++ b/lib/scripts/yabai-set-mode-server.sh @@ -26,6 +26,8 @@ main () { echo \ "{\"mode\": \"$1\", \"color\": \"$color\"}" \ > "$CACHE_FILE" + + curl http://localhost:7776/skhd/mode/refresh } case "$1" in diff --git a/lib/skhd.js b/lib/skhd.js index e9a7864f..36b61cd4 100644 --- a/lib/skhd.js +++ b/lib/skhd.js @@ -8,7 +8,7 @@ const { shell } = settings.global; export async function getMode() { const mode = await Uebersicht.run( - `${shell} ./simple-bar/lib/scripts/yabai-set-mode-server.sh --query 2>&1` + `cat $(${shell} ./simple-bar/lib/scripts/yabai-set-mode-server.sh --query 2>&1)` ); return Utils.parseJson(mode); }