[prev in list] [next in list] [prev in thread] [next in thread]
List: openbsd-ppc
Subject: Re: X4 keyboard protocol with german iBook
From: Daniel Hartmeier <daniel () benzedrine ! cx>
Date: 2003-07-09 9:14:31
[Download RAW message or body]
On Wed, Jul 09, 2003 at 10:48:27AM +0200, Anselm Garbe wrote:
> Does someone with non-US keyboard layout noticed such behavior and
> worked out a nice xmodmap patch, which I could adapt to work with german
> layout?
There's probably a more elegant solution, but this works for me :)
~/.Xmodmap (loaded through xmodmap(1) by ~/.xinitrc)
keycode 52 = y Y
keycode 29 = z Z
keycode 94 = less greater backslash
keycode 59 = comma semicolon
keycode 60 = period colon
keycode 61 = minus underscore
keycode 47 = odiaeresis eacute
keycode 48 = adiaeresis agrave braceleft
keycode 51 = dollar sterling braceright
keycode 34 = udiaeresis egrave bracketleft
keycode 35 = dead_diaeresis exclam bracketright
keycode 49 = section degree
keycode 10 = 1 plus bar
keycode 11 = 2 quotedbl at
keycode 12 = 3 asterisk numbersign
keycode 13 = 4 ccedilla
keycode 14 = 5 percent
keycode 15 = 6 ampersand
keycode 16 = 7 slash brokenbar
keycode 17 = 8 parenleft
keycode 18 = 9 parenright
keycode 19 = 0 equal
keycode 20 = apostrophe question
keycode 21 = dead_circumflex dead_grave asciitilde
keycode 116 = Mode_switch
keycode 113 = Mode_switch
keycode 115 = Mode_switch
keycode 64 = Mode_switch
keycode 22 = BackSpace
clear Shift
clear Lock
clear Control
clear mod1
clear mod2
clear mod3
clear mod4
clear mod5
add Shift = Shift_L Shift_R
add Lock = Caps_Lock
add Control = Control_L Control_R
add mod1 = Alt_L
add mod2 = Num_Lock
add mod3 = Mode_switch
add mod4 = Meta_L
add mod5 = Scroll_Lock
This is for a swiss-german keyboard, as an example.
The keycode is shown by xev(1) when you press the key, the list of
character names is found in /usr/X11R6/include/X11/keysymdef.h
(remove leading XK_), the rest explained in xmodmap(1).
HTH,
Daniel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic