Hello Can anyone please tell me, where I can find a good tutorial on creating my own keymap? Currently I have a Laptop with additional letters printed on the keys, which work with MS Win, if I select US-International Keyboard Layout. These letters can be accesed by pressing altGr and the respective key. Any idea where I might find such a thing with SuSE? Thanks in Advance, Christoph Burger-Scheidlin
"Andersin" <andersin@gmx.net> さんは書きました:
Can anyone please tell me, where I can find a good tutorial on creating my own keymap?
Currently I have a Laptop with additional letters printed on the keys, which work with MS Win, if I select US-International Keyboard Layout. These letters can be accesed by pressing altGr and the respective key.
Any idea where I might find such a thing with SuSE?
I don't know a good tutorial. But it is rather easy to create a ~/.Xmodmap file and add such bindings there. If you don't yet have a ~/.Xmodmap file, you can start with /usr/X11R6/lib/X11/etc/xmodmap.std as an example. Edit it to make your altGr key output 'Mode_switch' !keycode 113 = Alt_R Meta_R keycode 113 = Mode_switch (check with the program 'xev'). Then set a modifier for Mode_shift: ! If you use ModeShift or ModeLock, the following modifier must be set: ! add mod5 = Mode_switch and add something like the following to the end of your ~/.Xmodmap: keysym minus = minus underscore 0x01002212 NoSymbol keysym bracketleft = bracketleft braceleft leftsinglequotemark leftdoublequotemark keysym bracketright = bracketright braceright rightsinglequotemark rightdoublequotemark keysym a = a NoSymbol adiaeresis NoSymbol keysym o = o NoSymbol odiaeresis NoSymbol keysym u = u NoSymbol udiaeresis NoSymbol keysym e = e NoSymbol EuroSign NoSymbol The first entry after the '=' is for the key itself, without pressing Shift, the second entry is with pressing Shift, the third entry is with pressing Mode_switch (= altGr), the fourth entry is with Shift *and* Mode_switch. For arbitrary Unicode characters you can use the keysyms 0x0100xxxx where 'xxxx' is the hexadecimal Unicode code point. Your new ~/.Xmodmap is effective after restarting your X11 session or after loading it manually with xmodmap ~/.Xmodmap -- Mike Fabian <mfabian@suse.de> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。
participants (2)
-
Andersin
-
Mike FABIAN