Dear fediverse, maybe you know the trick. I have a laptop with a `de` keyboard and an external `us` keyboard. How do I configure my system to use either layout depending on the key press source? It's 2024 .. there must be a way! This should work on the console and in wayland gnome (no X11). I know this might be complicated, but not impossible.
@JustineSmithies
yeah, manual switching is easy... but the computer already knows which keyboard I used to press the key.
@jarkko
yeah, manual switching works of course, but the computer already knows where the key press came from
@backslash Under X11 it's possible to do "setxkbmap -device "$id" -layout de", where $id can be found in the output of "xinput --list".
But I have no idea how that translates to wayland.
@etam with X11 you can even have different configs matching the keyboard device like in https://superuser.com/a/946575