I'm the creator of the qwpr layout. One of the features of this layout is that caps-lock accesses a layer that includes basic ascii punctuation and arrow keys. The left and right arrow keys on this layer are, by default, word-by-word rather than letter-by-letter; that is, for example, ctrl-leftarrow rather than just leftarrow.
I've been able to have this functionality on Mac (through karabiner elements) and Windows (through pkl). On the rarer occasions I've used linux, I've used xmodmap to just have eg leftarrow, without the control.
However, I'm now going to start actually programming on a linux system. So I need my full keymap.
I've done some basic searching, and it doesn't look as if there's a clear howto that answers my question. I'm sure I could figure it out with enough trial and error, but I would also guess that someone in this forum has already solved it. So:
On linux, how can you get modifierA+letterkey to remap to modifierB+arrowkey? I'm open to solutions using xmodmap, xkb, both, or something else.
Thanks!