-
Notifications
You must be signed in to change notification settings - Fork 212
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
Long Delay before Action #42
Comments
You're most likely using a slow shell (fish?). Try to run skhd as follows: |
Yes I was using fish, and yes that made a huge difference -- thanks! (Maybe worth adding to a FAQ?) Mind if I also ask how to set it to always start up with bash? |
Assuming you've installed with brew:
Scroll down to the Plist file relevant for you (either with or without logging) and change like this <key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>#{HOMEBREW_PREFIX}/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
+ <key>SHELL</key>
+ <string>/bin/bash</string>
</dict> |
Somehow editing with Anyway, thanks! |
Eh, I forgot mentioning that you need to reinstall with the altered brew formula. |
Just an addendum, I figured I had a couple |
I noticed a considerable delay in skhd, similar to what was reported by someone else. The sourcing in zshenv is making the shell slow, so we need to offload it to zprofile. This file is only sourced for login shells. koekeishiya/skhd#42 https://unix.stackexchange.com/a/487889
I noticed a considerable delay in skhd, similar to what was reported by someone else. The sourcing in zshenv is making the shell slow, so we need to offload it to zprofile. This file is only sourced for login shells. koekeishiya/skhd#42 https://unix.stackexchange.com/a/487889
Incredible - thank you - using fast yabai for the first time in years is a lifechanger - I chose dash as my shell for even better performance. |
The latest skhd changed how it store the launchagent, so you have to run |
Here is a summary of the current fix all in one message: Setup SKHDSet command executing shellThis setup is required when you use Use
Reboot the system. Now your shortcuts should be executed quickly. You can check that it worked with something like:
|
If this can be updated in the README or wiki that would be awesome, I don't know if it is there already but I only got the fix in this thread |
@koekeishiya I am running into this issue (and I'm using darwin-nix to manage/configure it).. I was able to update the nixos.org.skhd.plist file via: launchd.user.agents = {
yabai.serviceConfig.EnvironmentVariables.SHELL = "/bin/dash";
skhd.serviceConfig.EnvironmentVariables.SHELL = "/bin/dash"; # Dash bc bash compatible but faster
}; my configuration includes: services.skhd.skhdConfig = ''
cmd - return : alacritty
''; and when I would run that (i.e., press cmd + return), alacritty launches with /bin/dash as the interactive shell- I'm not entirely sure how that interaction works- but is there a way to make the launch-ing shell = /bin/dash and keep $SHELL as fish in the skhd program's env after launch? |
I manually set `SHELL=/bin/sh` in the `.plist` file, which speeds up switching workspaces. koekeishiya/skhd#42 (comment)
Hi guys, - sorry if I'm making noise - I can get skhd to work but weirdly it gives me a 1-2s delay before actually executing my action. I've tried a minimalistic
~/.skhdrc
:I know the problem isn't on
chunkc
since the beep also takes about a second to come out - any ideas??Using skhd 0.2.2 on Hish Sierra.
The text was updated successfully, but these errors were encountered: