Skip to content
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

Automatic load of yabai --load-sa #1855

Closed
ironhak opened this issue Sep 14, 2023 · 5 comments
Closed

Automatic load of yabai --load-sa #1855

ironhak opened this issue Sep 14, 2023 · 5 comments

Comments

@ironhak
Copy link

ironhak commented Sep 14, 2023

Hello, there are features that require SIP to be disabled that will only work when I run sudo yabai --load-sa, so everytime I restart the machine I have to run that command otherwise those features wont work. Is there a way to have that feature always enabled?

Thank's

@Bellavene
Copy link

Bellavene commented Sep 14, 2023

Yabai does it automatically. In .yabairc there is a line to reload it after dock was restarted, which can give you a clue.
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
So you can add commands to .yabairc and it will be executed when yabai is loading.

@ironhak
Copy link
Author

ironhak commented Sep 15, 2023

.yabairc does not have default commands, I had to build it myself, so this line was not present.

I added it, seems to works. Thank's

@Bellavene
Copy link

Yes, read wiki, it is very helpful.

@ironhak
Copy link
Author

ironhak commented Sep 26, 2023

I added yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa" but does not work, I still have to load it manually :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants