Skip to content

Commit

Permalink
Merge pull request #398 from nomppy/master
Browse files Browse the repository at this point in the history
small fix for skhd mode refresh from server
  • Loading branch information
Jean-Tinland authored May 20, 2024
2 parents 9d7ed3d + 76bebc6 commit 736f9af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/scripts/yabai-set-mode-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ main () {
echo \
"{\"mode\": \"$1\", \"color\": \"$color\"}" \
> "$CACHE_FILE"

curl http://localhost:7776/skhd/mode/refresh
}

case "$1" in
Expand Down
2 changes: 1 addition & 1 deletion lib/skhd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 736f9af

Please sign in to comment.