yabai: yabai -m space --focus doesn't seem to do anything on Ventura 13.3

So Yabai seems to work fine of itself but the issue is that I can’t seem to switch spaces. I reinstalled the HEAD version. Re did the code sign and update the sudoers with a new sha256. Everything is tiling but `yabai -m space --focus 3’ does nothing. This isn’t the scripting addition error, in fact there are no errors when entering the command in terminal I believe It thinks it did it so I ran yabai in verbose tried the command again and I got the following:

EVENT_HANDLER_DAEMON_MESSAGE: space --focus 3
EVENT_HANDLER_WINDOW_TITLE_CHANGED: iTerm2 180
EVENT_HANDLER_WINDOW_TITLE_CHANGED: iTerm2 180

here is the result of yabai -m rule --list if it helps:

[{
	"index":0,
	"label":"",
	"app":"Discord",
	"title":"",
	"role":"",
	"subrole":"",
	"display":1,
	"space":4,
	"follow_space":false,
	"opacity":0.0000,
	"manage":null,
	"sticky":null,
	"mouse_follows_focus":null,
	"layer":"",
	"border":null,
	"native-fullscreen":null,
	"grid":"0:0:0:0:0:0"
},{
	"index":1,
	"label":"",
	"app":"Code",
	"title":"",
	"role":"",
	"subrole":"",
	"display":1,
	"space":2,
	"follow_space":false,
	"opacity":0.0000,
	"manage":null,
	"sticky":null,
	"mouse_follows_focus":null,
	"layer":"",
	"border":null,
	"native-fullscreen":null,
	"grid":"0:0:0:0:0:0"
}]

If there is anything else I can provide please let me know.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 15 (3 by maintainers)

Most upvoted comments

will yield this error in SKHD run in verbose cannot focus space due to an error with the scripting-addition.

For the Scripting additions error install from head as mention from other issues here https://github.com/koekeishiya/yabai/issues/1532 Also do the code sign then do

sudo pkill Dock
rm /tmp/yabai*
sudo yabai --load-sa
brew services restart yabai

and that’s what removes the error for me. Put like a couple seconds between commands for some reason calling them one after the other in a script doesn’t work so I put sleep(2)