I’m using KDE Plasma. I have two keyboards - one US, one Japanese with Kana. I’d like for each of those physical keyboards to use the appropriate layout, but right now all I can find is how to switch both keyboards’ layouts simultaneously. This doesn’t seem like that unusual a desire, so I’m hoping there is an easy option somewhere that I’m missing? Otherwise, can anyone point me in the direction of how I’d do that in a more complicated manner, so I can decide if it’s worth the effort?
Welcome to the forum @TeddyMcCormick ,
On Plasma (X11) follow the answer to this and it seems to work for French keyboard layout.
xinput list --short
shows you the keyboards (run twice, first with unplugged keyboard to see the diff,)
and you can address this keyboard by KEYBD_ID selectively in command
setxkbmap --id-only "$KEYBD_ID"
Oh, sorry, I’m still learning Arch (and to a certain extent, Linux); I should’ve specified I’m using Wayland. But your answer at least set me on a proper Googling path that seems to imply that Wayland makes this significantly more complicated than I’d like. Does that seem accurate? If so, I’ll probably just make do.
If you want an easy solution, maybe this is not it but you can do this kind of thing with a udev
rule. https://wiki.archlinux.org/title/Udev
Yeah, unfortunately that seems a bit beyond my abilities for the moment - but it is nice to know it’s hypothetically possible in the future.
I guess I’ll be sticking with the keyboard shortcut for now; it’s not that onerous, I’ll survive. Thanks both of you for the help!