View previous topic :: View next topic |
Author |
Message |
lordalbert l33t


Joined: 26 Nov 2006 Posts: 832 Location: Italy
|
Posted: Sat Dec 13, 2014 3:46 pm Post subject: [solved] configuring keyboard layout on i3 (in xorg.conf) |
|
|
Hi, i'm start using i3, but i have problems with keyboard layout (i want an Italian layout).
I need to set in in the xorg configuration file. If i don't start X, the keyboard layout is correct (italian).
I tryed to configure xorg, but it doesn't works. Probably i make some error... I post here my xorg.conf
Quote: |
cat /etc/X11/xorg.conf
Section "ServerLayout"
Identifier "aticonfig Layout"
Screen 0 "aticonfig-Screen[0]-0" 0 0
Screen "aticonfig-Screen[0]-1" RightOf "aticonfig-Screen[0]-0"
InputDevice "tastiera"
EndSection
Section "Module"
EndSection
Section "InputDevice"
Identifier "tastiera"
Driver "evdev"
Option "XkbLayout" "it"
Option "XkbModel" "pc104"
Option "XkbVariant" ",qwerty"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]-0"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]-1"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Device"
Identifier "aticonfig-Device[0]-0"
Driver "fglrx"
BusID "PCI:1:0:0"
EndSection
Section "Device"
Identifier "aticonfig-Device[0]-1"
Driver "fglrx"
BusID "PCI:1:0:0"
Screen 1
EndSection
Section "Screen"
Identifier "aticonfig-Screen[0]-0"
Device "aticonfig-Device[0]-0"
Monitor "aticonfig-Monitor[0]-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "aticonfig-Screen[0]-1"
Device "aticonfig-Device[0]-1"
Monitor "aticonfig-Monitor[0]-1"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
|
Last edited by lordalbert on Sat Dec 13, 2014 4:16 pm; edited 1 time in total |
|
Back to top |
|
 |
krinn Watchman


Joined: 02 May 2003 Posts: 7466
|
Posted: Sat Dec 13, 2014 4:08 pm Post subject: |
|
|
http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.8-upgrade-guide.xml
simple and generic /etc/X11/xorg.conf.d/97-evdev.conf wrote: | Section "InputClass"
Identifier "mouse-all"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "AutoServerLayout" "on"
EndSection
Section "InputClass"
Identifier "keyboard-all"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "XkbLayout" "fr" <-- change as need
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"<-- change as need
Option "AutoServerLayout" "on"
EndSection
|
|
|
Back to top |
|
 |
lordalbert l33t


Joined: 26 Nov 2006 Posts: 832 Location: Italy
|
Posted: Sat Dec 13, 2014 4:16 pm Post subject: |
|
|
Ok, thank you! Now it works!  |
|
Back to top |
|
 |
krinn Watchman


Joined: 02 May 2003 Posts: 7466
|
Posted: Sat Dec 13, 2014 4:20 pm Post subject: |
|
|
I know i'm kind, but i just hope you'll still have a look at the doc  |
|
Back to top |
|
 |
lordalbert l33t


Joined: 26 Nov 2006 Posts: 832 Location: Italy
|
|
Back to top |
|
 |
krinn Watchman


Joined: 02 May 2003 Posts: 7466
|
Posted: Sat Dec 13, 2014 4:33 pm Post subject: |
|
|
http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.8-upgrade-guide.xml wrote: | A new configuration section called InputClass is introduced. It is very similar to the InputDevice section but can match (and therfore configure) multiple devices. |
So you could use InputDevice or InputClass but if you want configure multiple device in a go, it's InputClass.
Better use InputClass, so if you use multi-keyboard/mouse they get configure as you wish per default. |
|
Back to top |
|
 |
|