Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 xmodmap/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!

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.