I have my keyboard layouts (two of them) and switching between them configured via the following command:
setxkbmap -layout us,ru -option -option "grp:lctrl_lshift_toggle,ctrl:nocaps"
Now I want to switch to us
layout, using some command line command. Is that possible?
Best Answer
You could use xkb-switch (
-n
switches to next layout):or xkblayout-state (with
set +1
to wrap around, in your case) :or
xte
from xautomation to simulate Control_L+Shift_L key press/release: