Sample Header Ad - 728x90

Remapping caps-lock to escape, and menu to compose, on the linux console

11 votes
4 answers
8661 views
When running X I use a .xmodmaprc to remap certain keys thusly: ! Make it so that both Caps Lock and Escape do Escape clear Lock keysym Caps_Lock = Escape ! Remap the menu key as Compose keysym Menu = Multi_key How can I accomplish the same things on the console? ## update In addition to the partial solution given in my answer, I've learned that the console maps CTRL-. to Compose. So I may be able to get used to that. Setting up the Menu key as Compose is not so easily done, as there are a ton of nul-assigned keycodes and no obvious contender for an alternate name for Menu. I've also realized that the compose bindings themselves are much more limited than what I'm used to under X, and that most of the special characters I use frequently are not there. Perhaps there is a utility that will translate X-syntax compose bindings into something that loadkeys can read?
Asked by intuited (3578 rep)
Feb 19, 2011, 01:35 PM
Last activity: Jan 24, 2024, 01:10 PM