When using a virtual terminal (TTY) on Linux, there are certain keybindings that are redundant on modern keyboards. For example, Ctrl+J and Enter do the same thing (Linefeed).
I would like keys like Enter to retain their current mapping, freeing up stuff like Ctrl+J for something else.
On Raspbian Lite (basically, Debian), is it possible to map Ctrl+J to something different to Enter?
There are five man
pages you should start with when learning about keymaps:
keymaps(5)
for defining custom keymap files.dumpkeys(1)
to explore the state of the current keymap.showkey(1)
to detect which keycodes your keyboard emits.loadkeys(1)
to load a different keymap into the kernel.install-keymap(8)
to persistently update the system keymap.Note: This information relates to the virtual terminals that the kernel provides. Some things are different with X (see XKB).