How can I change the keyboard layout through the terminal? This is necessary, because I write the program on Ruby, and I need to programmatically change the layout of the keyboard
I found the solution using the xkbswitch utility.