Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

Stop Start and Restart The Yabai Tiling Window Manager

** Start Yabai

Code

brew services start yabai

Results

==> Successfully started `yabai` (label: homebrew.mxcl.yabai)

** Stop Yabai

Code

brew services stop yabai

Results

Stopping `yabai`... (might take a while)
  ==> Successfully stopped `yabai` (label: homebrew.mxcl.yabai)

** Restart (both commnads together)

Code

brew services stop yabai && brew services start yabai

Results

Stopping `yabai`... (might take a while)
  ==> Successfully stopped `yabai` (label: homebrew.mxcl.yabai)
  ==> Successfully started `yabai` (label: homebrew.mxcl.yabai)

It takes a bit (up to a minute or so) for yabai to stop.

Using this command joined with `&&` makes sure that the start command waited for the stop command to finish.

Things jump around a lot when it starts back up. Give it a bit to settle down. Also, windows sometimes end up in different places. Don't be surprised if you have to move stuff around after a restart.