add new way of configuring keyboard layout, xorg.conf.d/input.conf
authorluxh <luxh@web>
Thu, 21 Jul 2016 21:21:32 +0000 (21:21 +0000)
committerCharlie Root <root@leaf.dragonflybsd.org>
Thu, 21 Jul 2016 21:21:32 +0000 (21:21 +0000)
docs/developer/luxh/index.mdwn

index 860b5ee..1cac2d5 100644 (file)
@@ -8,7 +8,26 @@ debug.debugger_on_panic=0 or put DDB_UNATTENDED in the config to panic instead o
 remember to update dumpdev in rc.conf when you change disk.
 
 ####X
-Set keyboard layout in /etc/X11/xorg.conf. se_sv_dvorak is in /usr/local/share/X11/xkb/symbols/se_sv_dvorak
+New way, when devd is used. se_sv_dvorak is in /usr/local/share/X11/xkb/symbols/se_sv_dvorak. Add this to /usr/local/etc/X11/xorg.conf.d/input.conf:
+
+       Section "InputClass"
+               Identifier "Keyboard Defaults"
+               Driver "keyboard"
+               MatchIsKeyboard  "on"
+               Option "Protocol" "standard"
+               Option "XkbRules" "base"
+               Option "XkbModel" "pc105"
+               Option "XkbLayout" "se_sv_dvorak"
+       EndSection
+
+       Section "InputClass"
+               Identifier "Mouse Defaults"
+               Driver "mouse"
+               MatchIsPointer "on"
+       EndSection
+
+
+Old way: Set keyboard layout in /etc/X11/xorg.conf.
 
        Section "InputDevice"
                Identifier  "Keyboard0"