Changing the keyboard keys (that is, remapping them).
Hi:
I want the system to see a certain keyboard key as if it were another key. To put an example, suppose I want each time I type 'e' the system sees 't'. Can this be done? Any suggestion would be greatly appreciated. Thanks for reading. |
Take a look at:
/usr/share/kbd/keymaps/i386/dvorak/dvorak.map.gz /usr/doc/kbd-1.15/dvorak/dvorak.xmodmap for some hints on how to remap keys, you'll probably have to make your own map file, and have the system use it. Not sure why you would want to do this, but you can. Also note that the console and Xorg can use different keymaps, so you have to change both. Oh and the 'xev' command will come in handy for getting the key codes. |
Quote:
Well, excuse me for this anger, but I had to tell somebody. Thanks for your reply. I have found all the files you have mentioned and will study the docs. Enrique. |
Quote:
And that other one is the menu key. It opens up the context menu for whatever is selected. |
xmodmap is the way to go. For example, I hate the "Caps lock" key, and prefer it just to work as "Shift"
So I run this at login: Code:
xmodmap -e "remove Lock = Caps_Lock" |
Yes. But what about when not having run X yet. I only start X in rare times. For example to enter LQ, Google or Wikipedia.
|
Outside of Xorg, you just have to make a keymap file I think, so in '/usr/share/kbd/keymaps/i386/'. Then you can use 'loadkeys' to load it.
|
Quote:
|
All times are GMT -5. The time now is 06:46 PM. |