I recently acquired an old netbook which has no backslash/pipe key. I have successfully remapped the caps lock to backslash using loadkeys
.
I would like to map SHIFT+CAPS LOCK to the pipe key in a similar way, in particular not using anything like xkb
as I want all this to work on my VTs.
Is it possible to do this using loadkeys
or some other tool?
Best Answer
Found my own answer in the
keymaps
man page. On my keyboard the CAPS LOCK has keycode 41. To remap it, you need the following keymap line,This will map CAPS LOCK to the backslash character, and SHIFT + CAPS LOCK to the bar (pipe) character.