Skip to content

Keymap for virtual keyboard should be immutable #6436

Open
@Xyene

Description

Sway config:

input * {
    xkb_layout "myus"
}

Then, connecting with wayvnc and opening up a shell, the keyboard layout is still us.

$ swaymsg -t get_inputs                                                                                                                                                                     
Input device: virtual pointer
  Type: Mouse
  Identifier: 0:0:virtual_pointer
  Product ID: 0
  Vendor ID: 0

Input device: virtual keyboard
  Type: Keyboard
  Identifier: 0:0:virtual_keyboard
  Product ID: 0
  Vendor ID: 0
  Active Keyboard Layout: English (US)

Switching it to myus is ineffective.

$ swaymsg input '*' xkb_layout myus   
$ swaymsg -t get_inputs                                                                                                                                                                     
Input device: virtual pointer
  Type: Mouse
  Identifier: 0:0:virtual_pointer
  Product ID: 0
  Vendor ID: 0

Input device: virtual keyboard
  Type: Keyboard
  Identifier: 0:0:virtual_keyboard
  Product ID: 0
  Vendor ID: 0
  Active Keyboard Layout: English (US)

To get things working, I first have to set the layout to us (this should be a noop, but appears to not be one), and then to myus.

$ swaymsg input '*' xkb_layout us                                                                                                                                                                
$ swaymsg input '*' xkb_layout myus                                                                                                                                                           
$ swaymsg -t get_inputs 
Input device: virtual pointer
  Type: Mouse
  Identifier: 0:0:virtual_pointer
  Product ID: 0
  Vendor ID: 0

Input device: virtual keyboard
  Type: Keyboard
  Identifier: 0:0:virtual_keyboard
  Product ID: 0
  Vendor ID: 0
  Active Keyboard Layout: English (Mine)

At this point everything works.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions