swiss-windows-keyboard-layout-macos
Swiss Windows keyboard layout for macOS. Seamlessly use the German (Switzerland) Windows layout on Mac, including familiar special character mappings. Based on the weibeld-setup template.
ActiveNo CI- macOS & Shell
- karabiner-elements
- keyboard-layout
- macos
- swiss-german
★ 2 · Last push 16 Nov 2026
Releases
No releases yet.
README
⌨️ Swiss Windows Keyboard Layout for macOS
Type on your Mac exactly like on a Swiss German Windows PC.
AltGr + 2 → ⌥ Option + 2 = @
💡 Why
The built-in macOS "Swiss German" layout puts many characters in different places than Windows does — @, #, |, \, [ ] and { } all move. If you switch between Windows and a Mac, or plug a PC keyboard into your Mac, that breaks your muscle memory.
This repository ships Custom Swiss German, a macOS keyboard layout that mirrors the Windows German (Switzerland) layout. The Windows AltGr key maps to the Mac ⌥ Option key.
📦 What's inside
| File | Purpose | |
|---|---|---|
| ⌨️ | CustomSwissGerman.keylayout |
The keyboard layout definition (XML) |
| 🖼️ | CustomSwissGerman.icns |
Icon shown in the menu bar input menu |
No installer, no background process — macOS reads both files directly.
🚀 Installation
Get the files — clone the repository or download it as ZIP from GitHub:
git clone https://github.com/JtheGunner/swiss-windows-keyboard-layout-macos.git cd swiss-windows-keyboard-layout-macosCopy both files to the keyboard layouts folder. Pick one:
# All users (requires administrator password) sudo cp CustomSwissGerman.keylayout CustomSwissGerman.icns "/Library/Keyboard Layouts/" # Current user only (no sudo) mkdir -p ~/Library/"Keyboard Layouts" cp CustomSwissGerman.keylayout CustomSwissGerman.icns ~/Library/"Keyboard Layouts/"Log out and back in (or restart) so macOS picks up the new layout.
Activate the layout
- Open System Settings → Keyboard → Text Input → Input Sources → Edit…
(macOS 12 and older: System Preferences → Keyboard → Input Sources) - Click +, search for Custom Swiss German and click Add.
- Select it in the input menu in the menu bar.
- Open System Settings → Keyboard → Text Input → Input Sources → Edit…
Tip
Remove the built-in "Swiss German" input source afterwards, so you don't switch to it by accident with Ctrl + Space.
🔑 Key mappings
Letters, digits and the Shift layer (+ " * ç % & / ( ) = ? ü è ö é ä à $ £ < > …) match Windows. The characters you type with AltGr on Windows are on ⌥ Option here:
| Character | Windows | macOS (this layout) | |
|---|---|---|---|
| 📧 | @ |
AltGr + 2 | ⌥ + 2 |
| #️⃣ | # |
AltGr + 3 | ⌥ + 3 |
| 🔀 | | |
AltGr + 7 | ⌥ + 7 or ⌥ + 1 |
| ↩️ | \ |
AltGr + < | ⌥ + < |
| 🧱 | [ ] |
AltGr + ü / ¨ | ⌥ + ü / ¨ |
| 🧩 | { } |
AltGr + ä / $ | ⌥ + ä / $ |
| 💶 | € |
AltGr + E | ⌥ + R |
| 〰️ | ~ |
AltGr + ^ | ⌥ + ^ (dead key) or ⌥ + N |
| ✏️ | ´ |
AltGr + ´ | ⌥ + ´ (dead key) |
| ➖ | ¬ ¢ |
AltGr + 6 / 8 | ⌥ + 6 / 8 |
Dead keys work as on Windows: ¨, ^, Shift + ^ (`), ⌥ + ^ (~) and ⌥ + ´ combine with the next letter (^ + e → ê). Press Space after a dead key to type the accent on its own.
All other ⌥ and ⇧ + ⌥ combinations keep their usual macOS characters (for example ⌥ + S → ß, ⌥ + C → ©). ⌘ shortcuts are unchanged.
Note
On some keyboards, especially PC keyboards connected to a Mac, macOS swaps the § and < keys. That is a macOS keyboard-type setting, not part of this layout — see Troubleshooting.
🛠️ Troubleshooting
| Problem | Fix | |
|---|---|---|
| 🔍 | Layout does not show up in the list | Check that both files are in /Library/Keyboard Layouts/ or ~/Library/Keyboard Layouts/, then log out and back in. |
| 🔄 | § and < are swapped | Remove the keyboard type cache and re-run the Keyboard Setup Assistant: sudo rm /Library/Preferences/com.apple.keyboardtype.plist, then restart and choose ISO (European) when asked. |
| 🖼️ | Menu bar shows no icon | Make sure CustomSwissGerman.icns sits next to the .keylayout file with the same base name. |
🗑️ Uninstall
Remove Custom Swiss German in System Settings → Keyboard → Text Input → Input Sources → Edit…
Delete the files and log out:
sudo rm "/Library/Keyboard Layouts/CustomSwissGerman".{keylayout,icns} # or, for a per-user install: rm ~/Library/"Keyboard Layouts/CustomSwissGerman".{keylayout,icns}
🤝 Contributing
Issues and pull requests are welcome — for example missing or wrong key mappings. To test a change, copy the edited .keylayout into ~/Library/Keyboard Layouts/, log out and back in, and type the affected keys. Ukelele is a handy visual editor for .keylayout files.
🙏 Credits
The layout is based on weibeld-setup/install-keyboard-layout. Many thanks to the original project!
📄 License
MIT © Jeffry Würmli
@ to stay where it belongs.