Change input language in macOS Sierra beta when an external keyboard is connected/disconnected

automationkeyboardlanguage

Not sure if it is possible – is there a way to make macOS Sierra beta change the input language as soon as an external keyboard is connected? I have a Macbook Pro Retina 13" with an US keyboard layout, but sometimes I connect an external USB keyboard from Apple that has a German keyboard layout. While it is not difficult to manually switch between the two input languages, is there a way to automate this?

Best Answer

Karabiner can be set up to activate a different keyboard layout only for an external keyboard. See

Different key-maps/bindings for in-built keyboard and Bluetooth keyboard