Closed vitalybe closed 7 years ago
@vitalybe I hadn't noticed too much degradation in speed personally but after poking around a bit I think I was able to duplicate what I think is happening for you.
The good news is: You are not alone! It is happening to me as well.
The bad news is: I don't have a fix for this.
In the sample init.lua
I have HYPER+M
set to open Alfred and HYPER+L
to open a browser to Google News. Both of those keybindings seem to have the issue you mentioned.
I mostly use my Hyper setup these days to emulate CTRL for certain keys. On ^n
and ^p
I very rarely have an issue with responsiveness.
I wonder what would happen if you did something like:
k:bind({}, 'space', nil, function()
k.triggered = true
hs.eventtap.keyStroke({"cmd","alt","shift","ctrl"},"space")
end)
Does skipping the additional function call help the speed at all?
I encountered the same issue, but not that long as one second. I changed to https://spacelauncherapp.com recently. I still need to hold spacebar (hyper key for this app) for more than 0.2 seconds. It is intended for making a difference with inputting space (not very sure). The good thing is spacebar is very easy to be pressed with thumbs, much better than caps lock.
Does skipping the additional function call help the speed at all?
I'm afraid not.
I ended up removing hammerspoon completely, mapping caps-lock to F19 and using "Keyboard Maestro" for F19 combinations. I do give up on the ability of mapping CapsLock to another key (e.g Escape) but I needed the hyperkey combo functionality more.
Sounds like everyone has found something that works for them for the time being.
Marking this closed.
I am writing here in case there is a solution I missed. The provided configuration works as described, but my problem is that it is slow, or rather, it isn't as responsive as it used to be under with the original Karabiner.
If I quickly flick the
capslock+character
combination (e.g in the same speed I press the cmd+c) it has a 50% chance of registering correctly. To be sure I have to hold capslock down for about a second.Is it something you're experiencing? Any ideas about a solution?
Here is my current configuration for reference: