Closed alexgulbrandsen closed 1 year ago
same here skhd not working my config is in home folder and i even try in .config/skhd/skhdrc same think skhd don't work
mac os 13.2.1
Can you show me your yabairc and skhdrc file?
Or
Can you try brew services restart yabai
and brew services restart skhd
after you
edited your rc files?
I just installed them both minutes ago and they worked perfectly fine.
mac os Monterey 12.5
Can you show me your yabairc and skhdrc file? Or Can you try
brew services restart yabai
andbrew services restart skhd
after you edited your rc file?I just installed them both minutes ago and they worked perfectly fine.
i used this tutorial,yabai works fine just skhd don't work
This is the same configuration I am using. I have tried alt - <h,j,k.l> (for mac keyboard layout I press option button then h,j,k,l) to move to the target desktop and it works.
Which features of skhd you have tried and it did not work?
I'll try further and let you know if it doesn't work too.
now it's working, i remove skhdrc file uninstalled skhd rebooted mac stopped the yabai installed skhd make a new skhdrc in .config/skhd started yabai and skhd and now skhd working.
That's great.
@alexgulbrandsen If your problem still remains please feel free to let me know.
That's great.
Thanks, one more question, what is the command in skhdrc to spawn new terminal?
Well, you can create a script and configure skhdrc to point at it.
Or
You can simply set a iTerm Keys preferences (if you are using iTerm).
This following closed issue will show you the script https://github.com/koekeishiya/skhd/issues/20
Here is my command in skhdrc:
alt - n : $HOME/Library/Scripts/<script_name>
Please let me know if it doesn't work.
MacOS 13.2.1 broke skhd + yabai for me, too. Works after restart, no need to re-install skhd. I assume there is some change in MacOS that breaks skhd.
MacOS 13.2.1 broke skhd + yabai for me, too. Works after restart, no need to re-install skhd. I assume there is some change in MacOS that breaks skhd.
Can confirm restarting fixes it. Neither yabai nor skhd worked. I briefly attached a debugger and found that skhd
would segfault because carbon.process_name
was null and eventually gets dereferenced.
But why that happened for one boot cycle after updating to 13.2.1 I don't know.
I've been having issues suddenly on MacOS 13.3 as well with skhd
being broken. I have tried to restart my computer, restart the service (both stopping and starting manually and restarting). I even tried redoing the config file. Not certain what is up because everything was working just fine for awhile on 13.3 but all of a sudden stopped responding even though the service seems to be running.
Edit: Turns out it was just because I updated yabai
and didn't make sure to update the sha in my for my scripting addition.
@alexgulbrandsen If your problem still remains please feel free to let me know.
I´ve got it to work, but after a restart it does not work anymore. Any suggestions?
Would you mind show me your scripts?
So I could investigate the problem.
I've been having the same issue with skhd not working no matter what, but yabai working just fine. Ventura 13.3
I uninstalled skhd, killed yabai, and am about to install skhd, and reboot my computer.
now it's working, i remove skhdrc file uninstalled skhd rebooted mac stopped the yabai installed skhd make a new skhdrc in .config/skhd started yabai and skhd and now skhd working.
Edit: Warning: Calling plist_options is deprecated! Use service.require_root instead.
is this a relevant warning when installing skhd?
Edit 2: I have an incessant accesibility access pop-up now which won't disappear (along with the recording, I tried to restart with brew services restart
and also restart my computer... I cannot even deny it! it keeps asking! I stopped the service, restarting the computer now, let's see if the pop-up appears.
I now come into an issue starting skhd, no matter how many times I reinstall it:
Please, help
MacOS Ventura 13.3. Yabai works fine. Skhd service is started by brew, but none of the shortcuts work. Restarting the computer didn't help. Tried reinstalling and everything, but no luck.
MacOS Ventura 13.3. Yabai works fine. Skhd service is started by brew, but none of the shortcuts work. Restarting the computer didn't help. Tried reinstalling and everything, but no luck.
Basically, the same thing here. It's the issue with Ventura, then. It's now a matter of
MacOS Ventura 13.3. Yabai works fine. Skhd service is started by brew, but none of the shortcuts work. Restarting the computer didn't help. Tried reinstalling and everything, but no luck.
Basically, the same thing here. It's the issue with Ventura, then. It's now a matter of
- do we wait or..
- is there a workaround someone figures out?
Have you tried starting skhd manually, instead of using brew? That may print out some useful diagnostic information.
default < 7 : open 'http://google.com'
This will cause the browser to open Google any time you press '7'.
Run skhd manually with your temporary config, e.g.:
# use your temporary config
$(which skhd) --config /tmp/skhdrc_temp
Press '7' to see if Google opens.
Also, please double check that skhd
appears in the list of System Settings > Privacy & Security > Accessibility
I have the same problem that skhd is not working on 13.3. Used yabai from HEAD and that seems to work fine, to get around the Calling plist_options is deprecated
bug. I also compiled skhd from source and tried that, but no luck. The minimal example above also doesn't work , but no errors anywhere I can find. Maybe I should add that it worked fine before, but had to redo some stuff because it was running under Rosetta, and I needed to get rid of that to compile specific pieces of software.
MacOS Ventura 13.3. Yabai works fine. Skhd service is started by brew, but none of the shortcuts work. Restarting the computer didn't help. Tried reinstalling and everything, but no luck.
Basically, the same thing here. It's the issue with Ventura, then. It's now a matter of
- do we wait or..
- is there a workaround someone figures out?
Same here, just adding some info; running skhd -o in the terminal does register the keys (such as alt, etc.) and returns key codes. However, in any app, pressing alt - anything just returns non-ASCII symbols as if skhd is not "catching" the modifiers/keys before the system handles them.
I spent hours trying to debug skhd not working at all. When I execute skhd -V
it shows the error below.
skhd: successfully created pid-file..
skhd: using config '/Users/orcinus/.config/skhd/skhdrc'
hotkey :: #47 {
#47:1 undeclared identifier
skhd: watching files for changes:
/Users/admin/.config/skhd/skhdrc
I just copy&pasted the code in the example. I found out that the example had unnecessary line breaks.
https://github.com/koekeishiya/skhd/blob/master/examples/skhdrc
Here's the corrected version.
However, I found out that the example file is completely useless since this file calls chunkc
function, not yabai
function. Here is an example that works.
Furthermore, when I execute skhd -P
, zsh threw an error!
skhd -P
56.4633ms (init)
0.2578ms (parse_config)
23.7467ms (begin_eventtap)
80.5097ms (total_time)
1.2551ms (handle_keypress)
yabai-msg: failed to connect to socket..
And it turns out that I needed to brew services start yabai
when skhd is not running. I just executed brew services start -all
and yabai + skhd start working properly.
I'm getting a similar issue as above. I had yabai running and installed skhd (brew install koekeishiya/formulae/skhd
). Then ran skhd --start-service
as instructed by the README and got this error:
Load failed: 5: Input/output error Try running
launchctl bootstrap
as root for richer errors.
When I run skhd -V
I get this output:
skhd: could not lock pid-file! abort..
I've tried:
brew services stop yabai
), 2) restarting yabai (brew services restart yabai
), and 3) manually turning yabai off and on (brew services stop yabai; brew services start yabai
).I am on MacOS Ventura 13.3.1 (a) if that helps at all.
Update:
I don't know if this information is helpful at all but I tried installing skhd the git download way listed in the README (git clone https://github.com/koekeishiya/skhd; make install
) and got this output:
make 1 rm -rf ./bin 2 mkdir -p ./bin 3 clang src/skhd.c -std=c99 -Wall -g -O0 -framework Cocoa -framework Carbon -framework CoreServices -o bin/skhd 4 In file included from src/skhd.c:32: 5 src/hotload.c:275:5: warning: 'FSEventStreamScheduleWithRunLoop' is deprecated: first deprecated in macOS 13.0 - Use FSEventStreamSetDispatchQueue instead. [-Wdeprecated-declarations] 6 FSEventStreamScheduleWithRunLoop(hotloader->stream, 7 ^ 8 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h:1 138:1: note: 'FSEventStreamScheduleWithRunLoop' has been explicitly marked deprecated here 9 FSEventStreamScheduleWithRunLoop( 10 ^ 11 src/skhd.c:435:35: warning: unused function 'connection_handler' [-Wunused-function] 12 static GLOBAL_CONNECTION_CALLBACK(connection_handler) 13 ^ 14 2 warnings generated.
Notice the "warning: 'FSEventStreamScheduleWithRunLoop' is deprecated: first deprecated in macOS 13.0". Considering the possible root cause of a change in MacOS 13 this might be a clue as to what is happening.
Load failed: 5: Input/output error Try running launchctl bootstrap as root for richer errors.
https://github.com/koekeishiya/skhd/issues/264#issuecomment-1532968259
same, it just sometimes suddenly decided that it shouldn't work, then it stops working. Try to relogin still doesn't work, I run with -V and none of them have issues like the posts before, but somehow none of the key mapping are triggering or doing anything. It was working before before the version upgrade, after the version upgrade nothing is working as smoothly as before.
On newer versions of macOS the binary likely needs to be codesigned.
For yabai I ship pre-compiled binaries that are already codesigned. skhd does not come with pre-built binaries and must be codesigned by the user.
On newer versions of macOS the binary likely needs to be codesigned.
For yabai I ship pre-compiled binaries that are already codesigned. skhd does not come with pre-built binaries and must be codesigned by the user.
Do you have any plans to ship pre-compiled binaries for skhd as well? And if you don't, could you (or anyone else) explain how we can codesign the binary?
I would like skhd to work the same was as yabai (in terms of project management, changelogs, releases etc), but I am not particularly active these days; doing such a restructure takes quite a bit of time, so yeah don't get your hopes up.
For codesigning you can follow the introduction on this page from the yabai wiki, but replace yabai with skhd in the instructions: https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(from-HEAD)
just deleting the skhd lock file in /private/tmp
and starting skhd again with the command nohup skhd &
worked for me
just deleting the skhd lock file in
/private/tmp
and starting skhd again with the commandnohup skhd &
worked for me
you mean the skhd_master.pid right?
just deleting the skhd lock file in
/private/tmp
and starting skhd again with the commandnohup skhd &
worked for meyou mean the skhd_master.pid right?
depends on your username, it would be like skhd_<username>.pid
, so if your username is master, then yes
just deleting the skhd lock file in
/private/tmp
and starting skhd again with the commandnohup skhd &
worked for me
It works for me. Thank you.
Hey, just until 2 days ago, my skhdrc used to work fine, but not anymore. I don't think I changed anything in particular that caused it not to work. I deleted, stopped, reinstalled both yabai and skhd, but of no use. Yabai works perfectly fine, but I am not able to use the keymaps I defined in my skhdrc. The location is ~/.config/yabai/yabairc and ~/.config/skhd/skhdrc. Below is my skhdrc file:
alt - j : yabai -m window --focus south alt - k : yabai -m window --focus north alt - h : yabai -m window --focus west alt - l : yabai -m window --focus east
Now even if I restart both yabai and skhd, the mappings still don't work. Instead I get those symbols (ex. alt+j gives ∆).
I even tried replacing alt with any other key like ctrl, but it also didn't work. I also followed josean's tutorial about yabai again, that also didn't help. Although my skhdrc isn't working, I am not getting any errors.
Edit: I read AJAYK-01's reply. I didn't have any skhd lock file. So I just did "nohup skhd &" and it worked
This was also a problem for me on Sonoma 14.5 AYAYK-01's reply worked for me. Deleting the file in tmp and using the command. Now all the hotkeys work perfectly and it also fixed the skhd pop-up for accessability. 👍
Doesn't seem to fix the issue for me :(
Hello! I have installed yabai and skhd, but I can´t get the keyboard shortcuts to work. What might be the issue?