Skip to content

Sway resets keyboard layout to first after TTY switch #5456

Open
@kchibisov

Description

To repro, open terminal, try typing into it, change layout, type again, switch to some TTY, switch back, continue typing, you'll see that layout was changed. Also, it seems like this layout change isn't propagated via IPC as well, so it seems like it was done unconditionally.

sway version 1.4-c22caa54 (Jun 13 2020, branch 'HEAD')

config

input * {
  xkb_layout us(dvorak),us
  xkb_options grp:shifts_toggle
}
set $mod Mod4
bindsym $mod+Shift+q kill
set $execnoid exec --no-startup-id
bindsym $mod+Shift+f fullscreen toggle
bindsym $mod+Shift+space floating toggle
bindsym $mod+space focus mode_toggle
bar {
        mode hide
        hidden_state show
        modifier none
        position top
        status_command exec /home/malc/tmp/sway/status
        colors {
               background #393b3f
               statusline #ffffff
        }
}
focus_follows_mouse no
for_window [tiling] floating enable
bindsym $mod+t $execnoid alacritty
bindsym $mod+Shift+t $execnoid stwrap
bindsym $mod+Shift+d $execnoid sway bar hidden_state toggle
output DP-1 scale 2
xwayland disable

log.txt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions