2

How can we connect two physical keyboards to our computer and have two different layouts for each?

The accepted answer for this 11 year old question will apparently not work for Wayland.

When I run xinput -list | grep key, I get the following output with a warning. It does not also list two physical keyboards that are connected.

WARNING: running xinput against an Xwayland server. See the xinput man page for details.
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ xwayland-keyboard:17                      id=9    [slave  keyboard (3)]

Running sudo libinput.list-devices actually lists the keyboards


Device:           Dell KB216 Wired Keyboard
Kernel:           /dev/input/event16
Group:            5
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device: AT Translated Set 2 keyboard Kernel: /dev/input/event3 Group: 10 Seat: seat0, default Capabilities: keyboard Tap-to-click: n/a Tap-and-drag: n/a Tap drag lock: n/a Left-handed: n/a Nat.scrolling: n/a Middle emulation: n/a Calibration: n/a Scroll methods: none Click methods: none Disable-w-typing: n/a Accel profiles: n/a Rotation: n/a

How can I setup so that AT Translated Set 2 keyboard has Finnish layout and Dell KB216 Wired Keyboard has US layout? I'm running Ubuntu 24.10 with GNOME.

brownser
  • 148

0 Answers0