I'm writing some scripts to automate common things like changing the language/keyboard layout or installing legacy tools like browser, passwordsafe and so on. This is designed for an Antergos installation, which itself is based on Arch Linux. My first task is changing the default keyboard layout. Although I selected German in the installation process, I got a English layout after installation.
Using the GUI, it's done like described here: http://mixeduperic.com/linux/how-to-enable-multiple-language-keyboard-layouts-in-gnome3.html
How can I set this layout programmatically? I'm looking for some kind of configuration file where I can replace the English one by German in some case.
xprop -spy root _NET_ACTIVE_WINDOWthen parse the output with your custom script.