-
Notifications
You must be signed in to change notification settings - Fork 98
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: one-shot timeout action #970
Comments
Maybe this works: simulator. Here
I think this is possible today: simulator. The I haven't fully dug into why but seems some indirection/delay is needed to avoid an early trigger of the one-shot release. It's a bit clunky but seems to work. |
Out of curiousity does this actually work how you want it to? It would unconditionally execute |
A weakness in this solution is that I don't think it works quite right if you double-tap the one-shot key. But maybe some extra logic in the |
Not exactly, but I don't need it to be conditional for my current config right now.
Interesting idea! I should probably play around more with |
In Anyways, thanks to your solutions, I can run a pre-one-shot action and post-one-shot timeout action, which is great. However, is there a good solution to run a post-one-shot action after a follow up key has been pressed (without having to modify each key in the one-shot's |
Debateable if it's a "good" solution, but with some hackery with I used switch as a weird-looking multi using The |
Is your feature request related to a problem? Please describe.
When I tap a one-shot key, I want to be able to run an action like a
cmd
after timeout (if no further key has been pressed) so I can do things like a deadman's switch or notify that a modifier key has 'unstickied', etc.Describe the solution you'd like.
It could look:
(one-shot-press-timeout <timeout value> <one-shot action> <timeout action>)
Describe alternatives you've considered.
A workaround seems to be using virtual keys like so:
(multi (on-release tap-vkey some-one-shot-vkey) (on-idle 1 tap-vkey some-cmd-vkey))
Additional context
If the above feature request is approved, maybe also allow a pre one-shot action so I could run a script immediately just before a one-shot action.
The text was updated successfully, but these errors were encountered: