What about
setxkbmap(1)?
Code:
DESCRIPTION
The setxkbmap command maps the keyboard to use the layout determined by
the options specified on the command line.
An XKB keymap is constructed from a number of components which are
compiled only as needed. The source for all of the components can be
found in /usr/X11R6/share/X11/xkb.