Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xmodmap - Umlaute on English Keyboard
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
LonelyStar
Guru
Guru


Joined: 06 Dec 2005
Posts: 390

PostPosted: Fri Oct 24, 2008 4:03 pm    Post subject: xmodmap - Umlaute on English Keyboard Reply with quote

Hello,

I want to have german Umlaute on my US-Keyboard in the following way:

The Keyboard has a "Menu" key on the right. If I press a, u or o together with it, I want the corresponding Umlaut!
So I have this .Xmodmap:
Code:
clear Mod1                                                                                                                                                                                                                                   
add Mod1 = Menu                                                                                                                                                                                                                               
keycode  38 = a A adiaeresis Adiaeresis                                                                                                                                                                                                       
keycode  30 = u U udiaeresis Udiaeresis                                                                                                                                                                                                       
keycode  32 = o O odiaeresis Odiaeresis                                                                                                                                                                                                       
keycode  39 = s S ssharp

I apply it with xmodmap .Xmodmap

Output of xmodmap afterwards:

Code:
xmodmap:  up to 3 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock     
control     Control_L (0x25),  Control_L (0x42),  Control_R (0x6d)
mod1        Menu (0x75)
mod2        Num_Lock (0x4d)
mod3     
mod4        Super_L (0x7f),  Hyper_L (0x80)
mod5        Mode_switch (0x5d),  ISO_Level3_Shift (0x7c)

And some interesting part of xmodmap -pke
Code:
keycode  38 = a A adiaeresis Adiaeresis
keycode  39 = s S ssharp

It does not work. When I press the Menu key, I get the ~ symbol (after and before applying the modmap).

What could be wrong?

Thanks!
Nathan
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Fri Oct 24, 2008 9:02 pm    Post subject: Reply with quote

It depends on the keyboard type etc...
On mine the Menu key toggles the mode back and forth
Code:
clear Mod1
keycode 117 = ISO_Next_Group
add mod1 = ISO_Next_Group

keycode  38 = a A adiaeresis Adiaeresis
keycode  30 = u U udiaeresis Udiaeresis
keycode  32 = o O odiaeresis Odiaeresis
keycode  39 = s S ssharp
The trick is finding out the keycode of the Menu key. showkey on VT1 reports 127, but xkeycaps -kbd PC105 reports 117.

Viel Glück. :P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum