From 27d5cf131608594788b3755059391d4b78c072b7 Mon Sep 17 00:00:00 2001 From: Bor Grošelj Simić Date: Thu, 27 Feb 2020 21:50:21 +0100 Subject: input: implement cycling through keyboard layout list --- sway/sway-input.5.scd | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'sway/sway-input.5.scd') 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* xkb_rules Sets files of rules to be used for keyboard mapping composition. -*input* xkb_switch_layout - 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* xkb_switch_layout |next|prev + Changes the active keyboard layout to 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* xkb_variant Sets the variant of the keyboard like _dvorak_ or _colemak_. -- cgit v1.2.3-54-g00ecf