I have a laptop which I use an external keyboard with. When I type using the external keyboard I want to use a US keyboard layout, since that's the type of external keyboard I have. On the other hand, when I type using the integrated keyboard I'd like to use a Swedish layout.
Is this possible? And how would I go about doing it?
I'm asking here as I think we'll find most Linux expertise here.
Best Answer
First, you have to find the device ID of the keyboard to change:
Then change the layout using setxkbmap:
Some versions of setxkbmap need a '-layout' argument: