diff options
author | Bor Grošelj Simić <bor.groseljsimic@telemach.net> | 2020-02-27 21:50:21 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-03-11 12:12:23 +0100 |
commit | 27d5cf131608594788b3755059391d4b78c072b7 (patch) | |
tree | ba84de92919d5b32e1e476d0b726f282f4f14502 /sway/sway-input.5.scd | |
parent | 28e3187df1c85500efa3b3afb9032e8fe21b77d1 (diff) |
input: implement cycling through keyboard layout list
Diffstat (limited to 'sway/sway-input.5.scd')
-rw-r--r-- | sway/sway-input.5.scd | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sway/sway-input.5.scd b/sway/sway-input.5.scd index e23e0b93..9edd9381 100644 --- a/sway/sway-input.5.scd +++ b/sway/sway-input.5.scd @@ -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_. |