Keyboard layout
A list of the valid keyboard layout codes can be found in /usr/share/X11/xkb/rules/base.lst.
E.g, for the UK, use code gb in e.g. /usr/share/X11/xorg.conf.d/10-evdev.conf (for gentoo):
Section "InputClass"
Indentifier "evdev keyboard catchall"
...
Option "xkb_layout" "gb"
EndSection
Bizarrely, this code differs from that used in /etc/conf.d/keymaps, which would set KEYMAP=”uk”
Middle click
/usr/share/X11/xorg.conf.d/10-evdev.conf:
Section "InputClass"
Indentifier "evdev pointer catchall" (and "edev touchpad catchall")
...
Option "Emulate3Buttons" "True"
EndSection