So here is another thing which changed while I wasn’t using FreeBSD: xorg switched from using HAL to devd for automatic configuration of devices. This meant my old configuration file had zero effect on my desktop – which I quickly noticed, because the keyboard layout was off.
This is how I configured the keyboard previously, using HAL: just created a file named 10-keyboard-layout.fdi inside /usr/local/etc/hal/fdi/policy and added the following to it:
<?xml version="1.0" encoding="ISO-8859-1"?> <deviceinfo version="0.2"> <device> <match key="info.capabilities" contains="input.keyboard"> <merge key="input.xkb.layout" type="string">us</merge> <merge key="input.xkb.variant" type="string">altgr-intl</merge> </match> </device> </deviceinfo>
After reading up on the changes, the new way I did this was by creating a file named keyboard.conf inside /usr/local/etc/X11/xorg.conf.d and translating the configuration into:
Section "InputClass" Identifier "Keyboard Defaults" Driver "keyboard" MatchIsKeyboard "on" Option "XkbLayout" "us" Option "XkbVariant" "altgr-intl" EndSection
I have to admit I like this configuration much better – XML wasn’t really my thing. I also took the opportunity to break down my old and long /etc/X11/xorg.conf into smaller /usr/local/etc/X11/xorg.conf.d/*.conf files, broken down by context: one for font configuration, one for video driver etc.