Description
Keyboard layout state can be queried or changed from the command line in XKB-based X11 sessions. This is useful for scripts, panels, shortcuts, and workflows that need to switch input languages or layouts.
Changing layout state affects typing across the active session. Test scripts before using them with passwords or multilingual input workflows.