Package xkb-switch

Switch your X keyboard layouts from the command line

https://github.com/ierton/xkb-switch

xkb-switch is a C++ program that allows to query and change the XKB layout
state.

General Commands
Command Description
xkb-switch