Karabiner-Elements icon indicating copy to clipboard operation
Karabiner-Elements copied to clipboard

Script: Act upon double key press (with modifier)

Open d-t-o opened this issue 8 months ago • 0 comments

I'd like to map

cmd-tab -> operation1 cmd-tab-tab -> operation2 cmd-tab-tab-tab -> operation3

My problem is that not the second pressing of tab fires the action but the release of the cmd key. I fail to see how a karabiner script would look like that allows me to do this (basically count tab-presses and evaluate upon cmd release). All examples I've found that do something with multiple key presses involve a delayed action, but in my case there's no 'timeout' for the action to fire.

Is this possible with karabiner at all? Or does anyone know any other way of achieving this?

d-t-o avatar Jun 02 '24 16:06 d-t-o