Gentoo Archives: gentoo-user

From: Damian <damian.only@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Usb keyboard automatic layout
Date: Sat, 07 Nov 2009 11:24:54
Message-Id: 47a330c50911070324t5d3aa0f2kb43971d9546e5028@mail.gmail.com
1 Hello,
2
3 I often need to use unicode characters when I'm writing in Spanish.
4 For that purpose I've set up my .Xmodmap in the following way:
5 clear Lock
6 keycode 66 = Multi_key
7
8 After running
9 xmodmap ~/.Xmodmap
10
11 I can use the caps lock as a multi key in my laptop keyboard. However,
12 whenever I plug an external usb keyboard, it doesn't have the desired
13 layout, and I'm forced to run xmodmap again.
14
15 How can I do to modify automatically the keyboard layout of an
16 inserted usb keyboard? (running xmodmap from udev is not an option
17 because it has no effect at all).
18
19 Thanks in advance,
20 Damian.