Changing the keyboard keys (that is, remapping them).
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
Last edited by H_TeXMeX_H; 06-10-2010 at 03:57 AM.
Not sure why you would want to do this, but you can.
The reason is mine is a non-US keyboard and I find it awkward (uncomfortable). Specially because it has two additional keys between Alt and Ctrl (on the right), one of them with the logo of windows and the other with some kind of icon on it. Likewise on the left. I use Ctrl+Z a lot and always miss the control key. Plus, most of the special symbols have been relocated. And all this because we have an additional letter between n and o in our alphabet! They have left the old keyboard absolutely unrecognizable, with keys such as left shift and backspace half their original sizes.
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.
The reason is mine is a non-US keyboard and I find it awkward (uncomfortable). Specially because it has two additional keys between Alt and Ctrl (on the right), one of them with the logo of windows and the other with some kind of icon on it.
The "Windows Logo" key is actually the Super key. It existed before M$ and for some reason M$ decided to put their logo on it. It's actually quite useful. You can use it, for example, to launch applications of do special window manager actions.
And that other one is the menu key. It opens up the context menu for whatever is selected.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.