How to map multiple key combo to another multiple key combo in keyd on Linux?
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().
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 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.