rvaiya / keyd

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

[feature request] magic key/repeat key #845

Open throwaway-squared opened 1 month ago

throwaway-squared commented 1 month ago

hi, ive been using keyd for like 2 days now and ive got basically my whole qmk keyboard setup running all on my laptop keyboard which is pretty sick

that being said, from what i read, i do miss one feature from qmk and it would be cool if it could be implemented: the magic key/repeat/alternate repeat key

basically it repeats whatever letter was last typed, so 'dd' would become 'd[repeat]' you can also specify that after typing a letter, a different one shall be repeated, so 'ar' (which is hard for me to type on colemak) would become 'a[repeat]'

thank you :)

nsbgn commented 1 month ago

This sounds like a cool feature!

I do want to note that it is somewhat possible already with the oneshotm action. There will be a lot of duplication and drawbacks such as the loss of repeat-by-holding, which is why a dedicated feature would be nice, but still, if you're really missing it:

[main]
a = oneshotm(repeata, a)
b = oneshotm(repeatb, b)
# etcetera

[repeata]
. = a

[repeatb]
. = b

# etcetera
throwaway-squared commented 1 month ago

thank you for providing a way to do what i was looking for - will try this now, although as you said its kinda impractical to do for every key if you just want a normal repeat key