-
-
Notifications
You must be signed in to change notification settings - Fork 643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scripting-addition must be updated for macOS Sonoma 14.2 #2007
Comments
I am now using macOS 14.2 (23C64). I have updated the scripting addition and the Should I temporarily revert to the default macOS method of switching spaces with animation, or is there something I am overlooking? |
how did you update the scripting addition? I'm on MacOS 14.1.2 (23B92) and I'm getting when I run
FYI normally I switch spaces with |
Same issue here. Things like toggling float on windows work, moving windows to spaces work, but switching to spaces ( |
same here |
same here but the issue seems similar to #1880 |
@koekeishiya when you say "Scripting addition must be updated" I am assuming it is a todo for you and not for the users? |
Yes, he mentioned somewhere that he will do that once it out of beta, I believe it's in RC(release candidate). |
I encountered the same issue and have a workaround using MacOS's built-in shortcut for switching spaces/desktops.
I was concerned there would be a delay when switching spaces, which is why I used yabai, but that isn't the case. I should note that you will need to delete/comment out the |
yeah, that's the workaround I'm using but the workspace switches are slow, there is a significant delay compared to yabai workspace focus change. I'm personally using sketchybar on top, and that gets redrawn every time I do a switch. |
Same here, it is out of beta now, and after update, can not focus spaces, neither by click the sketchybar |
@kalebris That could be because you have a shortcut set for moving left/right a space instead of switching to a specific desktop. There is a delay for me when moving left/right but not when switching to a specific desktop. If that doesn't work, it could be something with sketchybar. |
macOS 14.2 23C64 is public now, no longer beta. Hope the fix is incoming soon 🤞🏼 |
After I upgraded to macOS 14.2 (23C64), the First configure the Mission Control shortcut keys: Comment out the related shortcut key configuration for switching desktops in Then I also found that moving the application window to the specified desktop and then switching to the corresponding desktop would also cause problems. I also made corresponding adjustments to the configuration in |
Oh nooo, I updated blindly, not realizing that this is a very new update and that yabai doesn't have the updated scripting addition yet. Thanks in advance for updating the scripting addition @koekeishiya, really appreciate your work! I can't work without yabai anymore xD |
It doesn't work for me as well. I got so used to yabai, that without it I can't work. |
What is so important about Sonoma that you cannot wait a few days? |
Sonoma is an exciting macOS update. Yabai worked well with the initial release and also with 14.1. I agree that, as Yabai "power users"", we should consider waiting for a week or two before upgrading to a point release. This will give the developer time to test and ensure Yabai works properly. It's always a cat and mouse game, unfortunately... |
The fork by @FelixKratz has been updated to 14.2 (FelixKratz@df5b037) |
Yeah but I still get the same error while trying to focus a space using his fork: |
Thanks for this. I confirmed to successfully used his fork to correctly run The steps working for me:
Finally able to enjoy instantaneous space-switching again 🤭 hope this helps anyone. Hopefully later I able to help merge this diff to yabai's main branch. *edit: I meant only the scripting-addition fix, not Felix's personal patches of course. |
This works for me. Previously I tried it but I failed. Now I successfully make it work on my M1 Pro Macbook with Sonoma 14.2. Below are some notes that may help others:
|
how do you detach it so that it can run in the background? |
@kareemlukitomo thanks, it works. But for some reason I can see a strange overlap on the second screen for 1 and 2 windows, and it overlap a sketchybar if there is only 1 window on a screen: and join the @SzymonMielecki question - how to make this yabai version work as a service ? |
Old solution@SzymonMielecki @alpiua this is good enough for me (not exactly running as proper service though, since I don't have a good concept of how background service works on macOS)https://chat.openai.com/share/348b1fd3-08c8-477a-8a3a-bdac028e6ec6 TL;DR #!/bin/bash
while true; do
yabai -c ~/.yabairc
# Sleep for a bit to avoid rapid restarts in case of immediate failure
sleep 1
done
Then running this into a detached screen/tmux/zellij session. (Gotta re-run on restart). Feel free to point out/give suggestions on how to improve this guys 👍 *edit: wait that means @Jacky-Lzx's suggestion (to point brew to Felix's yabai commit/patch) would make the background-service mechanism work OOTB? I'll revisit once I got home. Found this though https:/FelixKratz/homebrew-formulae/blob/master/fyabai.rb Still learning how to use it. See below #2007 (comment) |
For now, I'll just use Felix's personal brew formula ✌️ thank you for this @FelixKratz
Is there any benefit in cherry-picking FelixKratz@df5b037 and creating a PR for the master branch in this original repo? Happy to help with this or anything else needed. Cheers! |
Your original comment worked, but for some reason this updated one didn't for me. I don't mind having a terminal relegated to some workspace that just has |
This seems to fit here, but let me know if I should start a new thread instead: I'm new to mac and have used yabai as my window manager since I got one this summer. It seems OS updates are a lot more common than I expected, and so-far, unfortunately every update has broken my setup. Is there a way to tell if an OS update will break yabai, before updating? My company aggressively pushes OS updates, and while I can postpone them for a bit, it's cumbersome. |
Was able to cherry-pick the commit from Felix's fork (https:/PrayagS/yabai/tree/patched-for-14.2) and build the updated binary. Tried placing the binary at yabai's original location ( Used this old hack that I used to have when # Start skhd/yabai
if pgrep -x "yabai" >/dev/null
then
else
yabai
echo "yabai started"
fi Placed this in my |
I can confirm v6.0.2 works! Just by eliminating the workspace switching animation, yabai is saving an hour of my life every year, to say nothing of the emotional damage that vanilla macOS window management causes. Yabai is easily providing $100+ of value per year. Åsmund's work finally inspired me to set up a Patreon account. Thank you Åsmund! 🙏 🙏 🙏 |
Merry Christmas!! However I updated yabai to v6.0.2, but it seems still not working:
anything I missed here? I tried to run sudo yabai --load-sa manually, there is no error, just not woking as expected |
@marsjane did you edit your sudoers file after upgrading? In particular, the sha256 must be updated for the new binary https:/koekeishiya/yabai/wiki/Installing-yabai-(latest-release)#configure-scripting-addition |
Oh yes it works! Sorry for missing this, this is the first time I update yabai ;) Many thanks !! @boronine |
It works! |
Hey, |
The
|
I'm trying to get the scripting addition to work with Yabai on macos 14.2.1 with no luck. I setup everything and updated the sudoers file, but it gives this error when i try to run yabai:
|
small note, it just installed different version of yabai and didnt link it to system since I already had brew-installed yabai. So I added |
It works on yabai 6.0.2 following https:/koekeishiya/yabai/wiki/Installing-yabai-(latest-release)#configure-scripting-addition . Thanks so much for the quick fixes! |
I would like to confirm that scripting addition on 6.0.6 works. |
|
@koekeishiya is yabai managed by homebrew services or plist for now? |
title.
The text was updated successfully, but these errors were encountered: