keyd icon indicating copy to clipboard operation
keyd copied to clipboard

How to map multiple key combo to another multiple key combo in keyd on Linux?

Open xcollantes opened this issue 1 year ago • 2 comments

Configuration file where I tried one line at a time.

[main]
leftmeta+tab = leftcontrol+leftmeta+right 
#leftcontrol+leftmeta+right = leftmeta+tab
#leftcontrol+tab = macro(leftcontrol+leftmeta+right)

None of what I've tried works or makes any difference on my machine. I've also run sudo keyd reload every time.

The documentation at man keyd is a little bit confusing but from what I understand, this operation should work with macro().

xcollantes avatar Mar 10 '24 04:03 xcollantes

What are you trying to do?

Bear in mind that the chord syntax leftmeta+tab is only triggered when you strike leftmeta and tab at the same time. It is not the same as 'a tab modified by the meta key' ie pressing tab while holding leftmeta. If that is what you were trying to do, it would look like this:

[meta]
tab = M-C-right

[control]
tab = M-C-right

[control+meta]
right = M-tab

Does that help?

@rvaiya, if it's helpful, I could update the manpage to alleviate some common misconceptions I've seen pop up in the issue tracker?

nsbgn avatar Mar 10 '24 09:03 nsbgn

@nsbgn Yes, this worked as I wanted! Thank you.

I can actually help provide a contribution to the docs. I'll start a bug and PR. I'm busy these days so I might not get it done in the next month if that's alright.

xcollantes avatar Mar 16 '24 04:03 xcollantes