How to use a .xkm with X

Mike Eriksen thinstation.mike at gmail.com
Wed Jun 2 08:50:27 PDT 2010


On Wed, Jun 2, 2010 at 4:49 PM, Alan Coopersmith
<alan.coopersmith at oracle.com> wrote:
> Mike Eriksen wrote:
>> Oh no, making the precompiled keymaps is simple enough, the problem is
>> how to use them. With Xorg 6.8 and 6.9 you just added the -kbm option
>> to X, but that option has been removed with more recent version.
>>
>> So I have a nice xkm file, but no means to use it :-)
>>
>> For a normal distro it wouldn't really matter to use xkb in stead, but
>> when you run off a RAM disk on primitive hardware, you can't really
>> afford to waste at couple of MB just to get the right keymap.
>
> Can't you also use xkbcomp to load the .xkm file, in .xinitrc or similar?
>
> From the man page it appears that you should be able to do
>        xkbcomp foo.xkm :0

No, that will create foo.xkm from the setup on 0: - not force it into use.

Mike



More information about the xorg mailing list