I want to change keyboard layout in Linux by programming, What X11’s API function does this? Answer I found one good solution. It’s a c++ class wrriten by Jay Bromley, that I can add to my app and using it. source code It’s very easy to use: you can read source code and found some another useful functions. for compiling