-
Notifications
You must be signed in to change notification settings - Fork 220
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
yabai commands only work when skhd is run from terminal emulator #199
Comments
Here are my skhdrc, yabairc, and zshrc, in case they're helpful at all skhdrc: https://gist.github.com/mlegls/fb26506c6534d1b41ea785a2b3a35631 |
In case someone else has the issue and this doesn't get an actual solution, my temporary workaround is just to use pm2 instead of brew services to run skhd as a daemon, and to start it on startup. |
This happens to me too on a macbook m1 max. |
any updates here? this is pretty annoying |
export PATH=/opt/homebrew/bin:$PATH;
skhd
🤯 Now after ALL this nonsense On the first try, instead of adding After adding the full path of homebrew binaries to the script, both work. I just say this because it might be the reason that Anyway, hope there is a solution for this soon, I miss my Linux. Note: export PATH=/opt/homebrew/bin:$PATH;
skhd &>/dev/null; |
@marcelarie Thank you very much for this. I kinda gave up on the idea making it work with pm2 myself. Small note on your note. The code block to prevent the gear icon didn't work for me. Instead, this worked:
|
This issue is probably because skhd doesnt have the required permission. In a terminal, it may work, because the terminal was explicitly given the permission. Try opening the path of |
@es183923 I gave explicit permissions as you said and the issue persists. |
Did you try stopping the brew service, and starting it again? ( |
Before trying it, the service was not running. I use the login item with Automator as I explained before, because some commands don't work if I run the service with brew. So what I did is add the result of Anyway, I tried running stop and start too, and it does the same thing. Does it work for you? If it works, which Apple device are you using? |
I don't know why it's not working for you. It has worked for probably thousands of people, except a certain few. If you're using an extremely old device, that could be why, but you seem to be using an Apple Silicon device. I'm using a 13" M1 Macbook pro. Did you even start the service when trying the skhd commands? Also, what commands are you referring to that "don't work"? It is very peculiar to have certain commands working, but not others. |
I use a macbook 14" M1 Ultra so I think it should work.
yes, tried it multiple times too.
yabai related commands. so skhd can run other commands but not the yabai ones. |
Ok I found the issue, thanks @es183923 because you are the reason I thought about it. Basically for some reason brew service does not have the brew path. My
And I changed all the like this:
having to do this with each new command is not nice, but at least I am getting somewhere :) |
I had the same issue and resolved it by moving my PATH additions to my |
Changing the skhd SHELL to /bin/bash surprisingly fixed this problem for me. Then I tried @y-mx-b's workaround which was also a success! 🎉 It turns out it's because I also have LnL7/nix-darwin installed... For Zsh, it replaces the entire PATH via For Bash, it also replaces the PATH, but it is instead done via tl;dr; nix-darwin + Zsh causes ignored PATH in the skhd brew service 😞 |
Now that you mention it, this problem only cropped up for me after I installed Nix and Nix-Darwin... Damn. |
The issue is that OSX doesn't respect the contents of |
The above solutions didn't work for me (MacBook m1 max, Ventura 13.1, using zsh, more). What did instead, was re-installing skhd under bash shell:
I haven't restarted the machine yet; let's see if it persists in working :). |
I installed the release version of both skhd & yabai from Homebrew on an M1 Macbook Air, running MacOS Monterey 12.3.1.
When running skhd from
brew services start skhd
, no yabai command shortcut works at all, but all other command shortcuts work fine.However, the yabai commands themselves work fine from any terminal emulator, running either zsh or bash. Also, if I just start skhd directly from a terminal emulator rather than brew services, every yabai command shortcut works correctly.
The text was updated successfully, but these errors were encountered: