Using a non-US keyboard with X server 1.9

In the brave new world of X server 1.9 (this is with Robby Workman’s latest Xorg packages, but it’s only a matter of time before Slackware picks them up), HAL is dead to X and we now have /etc/X11/xorg.conf.d

However, I still want a UK keyboard layout, and these days, I want my Caps Lock to be another Control key. So I have this – /etc/X11/xorg.conf.d/caps.conf:

Section "InputClass"
Identifier "keyboard-layout"
Driver "evdev"
MatchIsKeyboard "yes"
Option "XkbLayout" "gb"
Option "XkbOptions" "terminate:ctrl_alt_bksp,ctrl:nocaps"
Option "XkbVariant" "basic"

The above now matches all keyboards, and applies the following rules to them (along with anything else you might have, or that is already applied):

1) Apply a UK keyboard layout
2) Give me back Control-Alt-Backspace to restart the X server
3) Make my Caps Lock key another Control key

Posted on October 10, 2010 at 9:42 pm by Carlos Corbacho · Permalink
In: Linux

Leave a Reply

You must be logged in to post a comment.