Conversation

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.

2
0
0

@JustineSmithies
yeah, manual switching is easy... but the computer already knows which keyboard I used to press the key.

0
0
0
@backslash Hmm. In GNOME (Fedora) I just go to keyboard setting, and add 'fi'. After that Super-SPACE just works (in my case at least). I use almost unmodified Fedora latest in my main Linux workstation.
1
0
0

@jarkko
yeah, manual switching works of course, but the computer already knows where the key press came from

1
0
1
@backslash Ah, I read your original post again, and apparently got it wrong. My bad, sorry.
0
0
0

@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.

1
0
0

@etam with X11 you can even have different configs matching the keyboard device like in https://superuser.com/a/946575

0
0
0