Libxklavier is an utility to make XKB stuff easier. WWW: http://gswitchit.sourceforge.net/