LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 10-25-2006, 05:49 AM   #1
ArmandoRampas
LQ Newbie
 
Registered: Oct 2006
Location: Barcelona
Distribution: Debian
Posts: 1

Rep: Reputation: 0
Xkb customization (and xmodmap)


Hi,

I use the us (intl) variant as xkb keymap. It suits almost all my needs, except
in two things:

1. The standard variant provided by Xorg does not include the symbol "periodcentered" (·,code 0x0b7), which I sometimes need when I write in catalan.

2. Since I use vi and tend to use "Escape" a lot, I find it convenient swap the <CAPS> and <ESC> keys (the caps-lock key falls much closer than the "Esc" key).

My question is how can I customize the keymapping, assuming that I want to stick to the 'xkb way' (instead of using xmodmap)?

I know how to modify the file /etc/X11/xkb/symbols/us to obtain what I want:

// Make 'periodcentered' appear
key <AB09> { [ period, greater ],
[periodcentered, dead_caron ] };
// I have substituted deadabovedot by periodcentered. The choice of this
// key (AB09) is arbitrary
..
// Exchange Esc and Caps
key <CAPS> { [ Escape ] };
key <ESC> { [ Caps_Lock ] };

The problem is that I modify the original 'us' file, which is very bad (I must be root to do it and the modified file will be replaced on every update).

A intermediate solution was to create a new 'symbols' file called "us_personal" (or whatever), which was a copy of the original plus these minor modifications. It was fine (now it isn't I don't know why), but it was an ugly fix. I wonder if there is any possibility to have a personal keymap configuration, in the spirit of the "~/.xmodmap" file but within the xkb system. If there is no such possibility I would like to hear any suggestions about what to do.

In any case, and as a last resource, I'll always have xmodmap (everyone says it is obsolete but everyone seems to use it

! Swap Esc and Caps_Lock
remove Lock = Caps_Lock
keysym Escape = Caps_Lock
keysym Caps_Lock = Escape
add Lock = Caps_Lock
! Add the periodcentered
...

Thanks a lot for your attention and help,

Dani
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What does XKB mean in this words? hkl8324 Debian 1 10-03-2005 01:54 AM
XKB configuration rainexpected Linux - Laptop and Netbook 0 08-29-2005 08:34 PM
xorgconfig - XKB Lars79 Slackware 5 07-11-2005 07:40 AM
what are the differences between XKB and Xmodmap gforgirish Linux - Software 0 07-05-2005 01:07 AM
xkb glass Linux - General 5 12-14-2002 12:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:35 AM.

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