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

Alan Coopersmith alan.coopersmith at oracle.com
Fri Jul 27 08:57:52 PDT 2012


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



More information about the xorg mailing list