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"
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

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