You are not logged in.

#1 2017-07-08 19:22:30

ur6lad
Member
From: Kharkiv, Ukraine
Registered: 2009-06-23
Posts: 34
Website

xkb+wayland+sway, layout switching doesn't work properly

I've installed wayland (1.13.0) + xwayland (1.19.3) + sway (0.13)

Now I'm trying to configure Sway to use two or tree keyboard layouts. Group switchers doesn't works as expected, e.g.:

  • grp:toggle switch one time then doesn't switch any more;

  • grp:rctrl_toggle switch 1 -> 2 -> 1 -> 3 but I think that it will switch by circle 1 -> 2 -> 3 -> 1 ...

  • grp:alts_toggle switch one time (the same as grp:toggle)

I've tried to google this issue but doesn't find anything similar. Maybe something wrong in my configuration?

localectl status

   System Locale: LANG=en_US.UTF-8
       VC Keymap: ua-utf
      X11 Layout: n/a

setxkbmap -print -query for any group switcher shows

xkb_keymap {
	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
	xkb_types     { include "complete"	};
	xkb_compat    { include "complete"	};
	xkb_symbols   { include "pc+us+inet(evdev)"	};
	xkb_geometry  { include "pc(pc105)"	};
};
rules:      evdev
model:      pc105
layout:     us

To run Sway I execute startSway.sh

export XKB_DEFAULT_LAYOUT=us,ua,ru
export XKB_DEFAULT_MODEL=pc105
export XKB_DEFAULT_OPTIONS=grp:rctrl_toggle
#export XKB_DEFAULT_OPTIONS=grp:toggle
sway

Earlier I just run

XKB_DEFAULT_LAYOUT=us,ua,ru XKB_DEFAULT_MODEL=pc105 XKB_DEFAULT_OPTIONS=grp:rctrl_toggle sway

I don't modify Sway's config but if it is needed -> https://ptpb.pw/FSxi

Update: I've found workaround
I've found that grp:win_space_toggle works correctly: it switches all layouts by circle 1 -> 2 -> 3 -> 1 ...

Last edited by ur6lad (2017-07-08 19:40:46)


tg:ur6lad
Run Arch on MSI Cubi 2, wayland+sway

Offline

Board footer

Powered by FluxBB