-
-
Notifications
You must be signed in to change notification settings - Fork 664
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
Adding helper for Karabiner-Elements bindings #267
Comments
You might be experiencing slowness in skhd because of your shell. For example I have fish as my default shell and skhd will use that to run the commands and be very slow because of the shell startup time. You can
Then you can I also use Karabiner Elements for advanced complex modifications, but for yabai and simple shell commands, I really like how easy skhd is to configure. I think you might like this too if you can fix the slowness. Sent with GitHawk |
This is a common issue with # ~/.config/fish/config.fish
if status --is-interactive
# heavy stuff goes here
end
|
Thank you very much. Yes, I love the syntax of To let $ brew edit skhd # opens .rb file
$ brew services stop skhd
$ brew reinstall skhd
$ brew services start skhd
So I directly edited this file (following a solution in the (issue): $ nvim /usr/local/Cellar/skhd/0.3.4/homebrew.mxcl.skhd.plist And.. I'm using |
So I could do this in
if not status --is-interactive
return
end
# heavy stuff goes here I'll give it a try if |
The problem with editing the file directly is that the file will revert at the next skhd update or at the next daemon reload. You should try to get the You could also try @dominiklohmann solution, I can't use it because I'm also using fish as a non-interactive command and I need the config always ready. |
It makes sence. I appreciate your detailed answer. |
@toyboot4e I'm not a From a quick Google search, there seems to be a Additionally, if you don't want to optimize your If you use |
@dominiklohmann Genius. I may take the last solution. Much appreciated! Edit: @alin23's answer worked fine: I didn't have |
Just a suggestion, but I'd like to share my helper script to configure Karabiner-Elements and run
yabai
commands with it.background
I'm using Karabiner-Elements instead of skhd. This is because, on my computer, somehow it's really slow to execute shell commands via skhd.
Karabiner-Elements requires users to write (weird) JSON files for key mappings. If I share my script, it may be easier for some people to get their JSON files ready.
tests
It surely makes working JSON. But I've not tested the the example JSON in my PR (because I don't use it, excuse me).
else
Feel free not to merge my PR. Thanks.
The text was updated successfully, but these errors were encountered: