rvaiya / keyd

A key remapping daemon for linux.
MIT License
3k stars 175 forks source link

Can I tap g to get a g and hold g for a control+g? #848

Closed xircon closed 1 month ago

xircon commented 1 month ago

Can't see the wood for the trees!

It's an emacs thing, just can't work it out for myself :(

nsbgn commented 1 month ago

Tapping and holding mean different things to different people, so this depends on what exact behaviour you have in mind! The simplest way to interpret your question would be g = timeout(g, 200, C-g), with the disambiguation between tapping and holding being based strictly on hold time. But what should happen when keys start overlapping? That happens quite often in normal typing.

xircon commented 1 month ago

Thank you! I must have misread the timeout section, I missed the g = part off, then I went down a rabbit hole of all the variations of overload. I understand what you are saying and have increased the time to 500 to hopefully counter this.