I am using both a German QWERTZ (full size) Mac and Windows keyboard on an Ubuntu 16.04 machine. Out of the box, this works nicely – my keyboard layout is set to "German", keyboard-configuration uses "Generic 102-key (Intl) PC", and the Mac keyboard behaves like plugged in under Windows.
This is my keyboard layout as shown in GNOME:
The only problem is that the Mac keyboard's < and ^ keys are swapped in the OS. In other words, when I press < on the Mac keyboard, I get a dead-key circumflex, and when I press the ^ key, I get a "less than" sign. On the Windows keyboard, this works as expected though.
How can I fix this behavior?
Note that I do not want the Mac keyboard to behave like, well, a Mac keyboard in the sense that I want to map Cmd to Ctrl or anything fancy. I just want it to behave like under Windows.
