How to remap Ctrl to Caps Lock in a TTY?
1
vote
2
answers
3118
views
I already understand how to remap keys in an X graphical server. However, I sometimes like to do work from a TTY and cannot seem to figure out a way to functionally remap
Ctrl
to Caps Lock
.
I have already tried creating a .keymap
file with the following contents:
keycode 37 = Control_L
Then sourcing it using loadkeys
, but to no avail.
However, 37
is the keycode for Ctrl
in X (according to xmodmap -pke | grep 'Control'
) so perhaps the keycode is different in a TTY? If so, how would I go about determining the correct key code and subsequently setting the remap?
Asked by se7enge
(13 rep)
Jul 10, 2022, 03:41 PM
Last activity: Jul 11, 2022, 04:22 AM
Last activity: Jul 11, 2022, 04:22 AM