-
Notifications
You must be signed in to change notification settings - Fork 213
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
[feature request] synthesizing multiple hotkeys per instance of skhd #128
Comments
Until this is implemented you might want to try cliclick: https://github.com/BlueM/cliclick However, while it is probably less resource hungry (as it doesn't spawn new processes) the effective time might be even slower:
I'm not sure if you can get much better than that without risking keys not to get registered. The reason 20b is fast in vim is as it controls the buffer and jumps instantly - if you just hold BTW, I found this issue looking around if anyone have implemented vim emulation in skhd. I would appreciate if you can share your work. |
I tried cliclick and indeed ran into the issues you mentioned - events seem to be throttled quite a bit. My pull request #129 modifies the argument parser for skhd so that it accepts sequential My vim emulation is broken and messy, but you can get a general gist for how it works here. |
Even without the external tools, I am interested in your pull request. E.g. currently in my skhdrc I have things like:
It would be nice not to spawn several processes while doing so. |
OK, I checked out @patrickhpan fork and measured the performance difference:
vs.
I think I will go with your fork until this is integrated here ;) |
Having to launch a new process in the first place was a stupid decision that is the result of me previously not wanting to require the use of IPC mechanisms in the main daemon. |
If this is indeed the current behaviour maybe the syntax for this suggestion could be Here's an example from my current config in the three variants: skhd -k 'escape'; skhd -k 'ctrl - right'; skhd -k 'hyper - space'
skhd -k 'escape' -k 'ctrl - right' -k 'hyper - space'
skhd -k 'escape' 'ctrl - right' 'hyper - space' |
It would be great for skhd to accept multiple
-k
or-t
options to allow synthesizing keypresses many times per one execution ofskhd
.Usecase: I'm attempting to make a vim-like mode using skhd and an external program. To run commands such as "20b", I'd need to synthesize "alt - left" 20 times in a row. Running something like
for i in $(seq 1 20); skhd -k "alt - left"
leads to considerable lag, as starting skhd 20 times incurs significant overhead.The text was updated successfully, but these errors were encountered: