I recently bought a new keyboard with another layout than my mac has (mac has qwertz, new keyboard has qwerty). I find it a bit tedious to manually have to switch the keyboard setting globally instead of seamlessly switching between devices and layouts. Is there a way to achieve that?

  • Can't you just make it qwertz for both keyboards through some keyboard layout editor? It will just change your bluetooth one since the built-in is already qwertz
    – Thinkr
    Commented Mar 30, 2023 at 11:14
  • sadly not, because apart from the switch of z and y, the two layouts have other differnces too (umlauts, basically every special character, etc.) so that wouldn't really be a feasible option. @Thinkr Commented Mar 30, 2023 at 13:07
  • See apple.stackexchange.com/questions/406721/… Commented Mar 30, 2023 at 13:08
  • @only-a-user yes, but change the whole keyboard in both. It won't change the built-in one.
    – Thinkr
    Commented Mar 30, 2023 at 14:28

1 Answer 1


This link, posted in the comments, which ultimately points to this StackExchange issue, which resolves this problem using this repository. Follow the instructions provided and it should work.

The repository is called autokbisw by Ole Hüter. It works by automatically detecting which keyboard you are using and choosing the appropriate layout.

It can be installed via brew:

brew install ohueter/tap/autokbisw
brew services start ohueter/tap/autokbisw
  • 1
    Hello, only-a-user. This is considered a "link-only" answer. It would be helpful for future visitors to this question if you would edit in a summary of that page. Links can become broken or outdated so a summary would still provide the necessary information.
    – agarza
    Commented Mar 30, 2023 at 13:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .