my setup is the following:I have a notebook (with integrated keyboard/non-Apple running Arch) and an external keyboard (fancy Apple keyboard)The problem is that Apple uses a different internal layout for its keyboards.For example the alt and the cmd/windows keys are switched.For now I have a script that changes the keymap globally in X11/setxkbmap (for all keyboards) so that alt and the windows key are in the correct place, but then they are wrong on the internal one.Is there a way for Linux to detect an external keyboard (by id or something), assign a specific keymap in console and X11, while leaving the internal keyboard untouched?
Different keyboard layout for each keyboard
keyboard;keyboard layout;hot plug