I would like to remap my Caps Lock key to either nothing or a key code of my choice.
To get the same behaviour across different environments (X / Wayland / non-graphical TTYs), and for learning how to do things like that, it is important to do it at the kernel level (so
xkb solutions will not help me).
How would I go about that?
Also, will a kernel module be sufficient or will it need to be a direct code change?
Thanks for any hints!