Skip to content

Check availability of yabai #761

Answered by koekeishiya
24unix asked this question in Q&A
Discussion options

You must be logged in to vote

The socket and pid file can indeed be leftovers from a previous session. I’m not sure what the fastest command to run would be, but I’d probably just run:

yabai -m config window_shadow

Most commands take similar amount of time to run when it fails to open a connection to the socket because yabai is not running, however this command requires less processing from yabai in cases where it is running (and gets a response). The command above returns the current value of the shadow_setting and you can just discard the response as you already do with the query command in your sample.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by 24unix
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants