input: implement cycling through keyboard layout list

This commit is contained in:
Bor Grošelj Simić 2020-02-27 21:50:21 +01:00 committed by Simon Ser
parent 28e3187df1
commit 27d5cf1316
2 changed files with 48 additions and 9 deletions

View file

@ -66,10 +66,14 @@ For more information on these xkb configuration options, see
*input* <identifier> xkb_rules <rules>
Sets files of rules to be used for keyboard mapping composition.
*input* <identifier> xkb_switch_layout <index>
Changes the active keyboard layout index. This can be used when multiple
layouts are configured with *xkb_layout*. A list of layouts you can switch
between can be obtained with *swaymsg -t get_inputs*.
*input* <identifier> xkb_switch_layout <index>|next|prev
Changes the active keyboard layout to <index> counting from zero or to
next or previous layout on the list. If there is no next or previous
layout, this command hops to the other end of the list.
This can be used when multiple layouts are configured with *xkb_layout*.
A list of layouts you can switch between can be obtained with
*swaymsg -t get_inputs*.
*input* <identifier> xkb_variant <variant>
Sets the variant of the keyboard like _dvorak_ or _colemak_.