happiness (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) happiness

macOSVenturaでyabaiがfocusできるようにする

問題点

yabai -m space --focus 7

しようとすると、

cannot focus space due to an error with the scripting-addition.

と言われたので、なんとかしようとした。

メインで必要なこと

document読んだところ、下記設定が必要だった。

をして設定する

手順メモ

  1. sudoersの設定をする
  2. recovery modeでなんか設定する
  3. rebootして、またコマンド打つ

これでもできなかったので、下記の設定をした。

問題2

一応できたが、下記のerrorが出た。

yabai-msg: failed to connect to socket..

以下のissueを確認した。

https://github.com/koekeishiya/yabai/issues/787#issuecomment-934268425

github.com によるとruning yabai --restart-serviceで解決できるとのこと。

そもそもyabaiが古そうなので、updateする

yabaiのupdate

今まで、

brew services restart yabai

だったが、新しくなっているっぽかったので、upgrade

brew upgrade yabai

yavai -v
> `yabai-v5.0.6`
yabai --start-service

最後

また動かなかったので、 https://github.com/koekeishiya/yabai/issues/787#issuecomment-754702081

sudo yabai --uninstall-sa
sudo yabai --install-sa
sudo yabai --load-saxq