You are not logged in.

#1 2008-08-09 12:10:50

solley
Member
Registered: 2008-08-09
Posts: 3

Non-US keyboard layout in Xorg

Hello,

I have a Belgian keyboard layout and had some troubles with the Alt-Gr key.
We combine this key with other keys to generate special symbols like the Euro sign or the @ character for example.
I found several solutions on several websites but they didn't seem to work for me.
I now added the following line in my /etc/X11/xinit/xinitrc and now it's working:

setxkbmap be

Perhaps it's not a bad idea to add this setxkbmap command to the Xorg package, since I noticed I was not the only
one who was struggling with this problem.

Regards,

Solley

Offline

#2 2008-08-09 12:17:11

Asgaroth
Member
From: Hesse, Germany
Registered: 2008-03-26
Posts: 58

Re: Non-US keyboard layout in Xorg

I never had to add such a command anywhere, I just set my keymap in rc.conf and have keymap in my initcpio hooks. You might want to check whether these things are correct on your machine, perhaps you won't need the setxkbmap command then.

Offline

#3 2008-08-09 13:23:49

solley
Member
Registered: 2008-08-09
Posts: 3

Re: Non-US keyboard layout in Xorg

The keymap in my rc.conf was ok.
The keymap in my initcpio hooks was missing. So I added it.
But still no luck.

Offline

#4 2008-08-09 13:49:42

Asgaroth
Member
From: Hesse, Germany
Registered: 2008-03-26
Posts: 58

Re: Non-US keyboard layout in Xorg

You have to rebuild the image using mkinitcpio -g /boot/kernel26.img (If you're using the standard arch kernel) and reboot for the changes to take effect.

Offline

#5 2008-08-09 13:53:43

Kane
Member
Registered: 2006-10-08
Posts: 220

Re: Non-US keyboard layout in Xorg

for xorg to change my keymap i simply add XKBlayout to my xorg.conf

e.g.

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbLayout" "gb"
EndSection

Offline

#6 2008-08-09 14:24:55

Rokixz
Member
From: Šiauliai, Lithuania
Registered: 2007-04-21
Posts: 251
Website

Re: Non-US keyboard layout in Xorg

My XORG look like that:

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "keyboard"
    Option          "XkbLayout"     "us,lt"
    Option          "XkbOptions"    "grp:alt_shift_toggle"
    Driver          "kbd"
EndSection


http://ispconfig.lt - ISPConfig 3 based hosting. Coming Soon!

Offline

#7 2008-08-09 14:54:41

solley
Member
Registered: 2008-08-09
Posts: 3

Re: Non-US keyboard layout in Xorg

Incredible!
It works now.

Thanks

Offline

Board footer

Powered by FluxBB