Open
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