X11 notes

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"

Bizarrely, this code differs from that used in /etc/conf.d/keymaps, which would set KEYMAP=”uk”

Middle click


Section "InputClass"
  Indentifier "evdev pointer catchall" (and "edev touchpad catchall")
  Option "Emulate3Buttons" "True"

Last modified: 03/05/2011 Tags:

This website is a personal resource. Nothing here is guaranteed correct or complete, so use at your own risk and try not to delete the Internet. -Stephan

Site Info

Privacy policy

Go to top