command line retrieve list of kbd layouts and variants (to use with setxkbmap)

Giuseppe Penone giuspen at gmail.com
Fri Jul 27 09:00:38 PDT 2012


this one works on lubuntu 12.04
pkg-config --variable=xkb_base xkeyboard-config
many thanks.
Giuseppe.


On Fri, Jul 27, 2012 at 5:57 PM, Alan Coopersmith <
alan.coopersmith at oracle.com> wrote:

> On 07/27/12 08:50 AM, Giuseppe Penone wrote:
> > the problem of parsing /usr/share/X11/xkb/rules/base.xml is that the
> location of
> > the file may vary from distribution to distribution
> > according to the prefix.
>
> I think /usr/share/X11/xkb/ is fairly common, and newer distros should have
> .pc files so you can do one of these:
>
> pkg-config --variable=xkbconfigdir xkbcomp
> pkg-config --variable=xkb_base xkeyboard-config
>
> --
>         -Alan Coopersmith-              alan.coopersmith at oracle.com
>          Oracle Solaris Engineering - http://blogs.oracle.com/alanc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20120727/e07914f4/attachment.html>


More information about the xorg mailing list