LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-02-2006, 12:09 PM   #1
i_m_meen
LQ Newbie
 
Registered: Jul 2005
Distribution: Ubuntu
Posts: 18

Rep: Reputation: 0
Change keyboard setup


I want to change a keyboard setup. But not in a "keyswapping" fashion, with Xmodmap or so, but rather change a default keymap (like EN_US, ...).
Right now i'm trying to use a Romanian keyboard which has Alt Right as the mode switcher (when I press it together with a for example, I get ă).
I want to be able to use Alt Left for this. That's all I want to know. Maybe it still has something to do with Xmodmap? Gnome supposedly overwrites Xmodmap, so there must be another way.

Where does X hold its keymappings?
 
Old 02-02-2006, 12:25 PM   #2
monkster
LQ Newbie
 
Registered: Sep 2005
Location: New England
Distribution: Ubuntu, Debian, Redhat
Posts: 12

Rep: Reputation: 0
Despite what you say, it sounds like all you want to do is swap Left-Alt with Right-Alt

1) You make your changes in /etc/X11/xkb/keycodes/xfree86 (even if you are running xorg)

2) Remember the constant on the LEFT is what to change (e.g. <DELE>)

3) First fire up xev and look for the key codes. On my system, Left ALT emits a 64 (which is assigned to <LALT>) and Right Alt emits a 113 (<RALT>). To swap these:

4) change <LALT>=64; to this: <RALT>=64;

5) change <RALT>=113; to this: <LALT>=113;

6) and comment out any duplicate definitions.


Log out and log in and it should work!
 
Old 02-02-2006, 02:51 PM   #3
i_m_meen
LQ Newbie
 
Registered: Jul 2005
Distribution: Ubuntu
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for the tip. The next thing I've got to find out is how to tell X, independantly of Gnome or other programs, which keymap I want.
Right now I'm using a so called "Romania US keyboard with Romanian letters".


This I must know because I'm going to get rid of Gnome soon, and I'll have more exotic setups like Xfce, Rox, FVWM, E17. And these don't follow the same guidelines (or at least don't have GUI's for everything).

Edit:
I believe I've found it.
For those wanting to know, it's most likely one of: /etc/X11/xkb/keymap/xfree86 or xfree98, and the exact keymap is either ro or ro_microsoft.

Last edited by i_m_meen; 02-02-2006 at 02:54 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I change a keyboard from US to UK? JennieL Linux - Hardware 1 10-11-2005 10:56 AM
Change Keyboard?? Knowledgements Slackware 5 07-15-2005 06:45 AM
Change 7CD setup to 1 DVD setup GaX Mandriva 1 04-22-2004 05:23 AM
keyboard change rsarson Linux - Hardware 0 11-21-2003 12:01 PM
change of keyboard marlinux Linux - Laptop and Netbook 0 08-20-2003 06:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration