[linux-l] AltGr und xmodmap

Ivan Villanueva iv at artificialidea.com
Di Apr 27 17:49:23 CEST 2004


On Tue, Apr 27, 2004 at 11:16:27PM +1000, Peter Ross wrote:
> Ansonsten gucke mal unter /usr/X11R6/lib/X11/xdm/xkb/symbols, da stehen
[...]
> Da kann man auch seinen eigenen Typ definieren, und den dann einbinden.

Hallo Peter,
danke für die Infos. Ich habe mich mitleweile schlauer gemacht. Aber es
war schwer, meiner Freundin zu erklähren, daß für mich wichtig ist, 4
Tasten umzukonfigurieren.
Ich habe aber noch nicht rausbekommen, wie ich auf User-Basis es ändern
kann. Es wäre toll, xkb auf User-Basis deaktivieren zu können.

Ich habe alle informationen gesammelt, da ich weiß, daß ich in eine Woche 
ich alles vergessen habe:


------------------------------------------------------------------------------
        keyboard configuration in X (27.04.2004) iv at artificialidea.com
------------------------------------------------------------------------------

X Window System has two mechanisms for setting keyboard mapping: the older one
called "xmodmap" and a newer one, based on the so-called "Xkb extension". 
Both don't work nicely together.

------------------
The old method
------------------
Disable the XKB extensions by starting the server
   with the "-kb" option or by adding the keyword "XkbDisable" to your
   XF86Config-4 file.

Use the graphical utility "xkeycaps" to generate a keyboard definition file for
    "xmodmap":
    xkeycaps is not part of X. Debian's package: xkeycaps

To find out key's codes and names use the X utility:
    xev

Copy the generated keyboard definition in:
    /usr/X11R6/lib/X11/xinit/Xmodmap
    or
    ~/.Xmodmap

It can be manually activated too with:
    xmodmap ~/.Xmodmap

-----------------------------
The new method: Xkb Extension
-----------------------------

Edit the files /usr/X11R6/lib/X11/xkb/<directory>/LC
    where LC is the country code (Eg es for spain), and <directory> are the
    subdirectories there.

To understand the syntax read the README files in:
    /usr/X11R6/lib/X11/xkb/
    specially:
    /usr/X11R6/lib/X11/xkb/README.enhancing

It can be manually activated too with eg:
    setxkbmap -rules xfree86 -model logicordless -layout "us,bg" -variant \
    ",phonetic" -option "grp:alt_shift_toggle"



Mehr Informationen über die Mailingliste linux-l