Programmer’s Dvorak with German umlauts on macos big sur

If you are a real fan of the programmer’s Dvorak keyboard layout that is part of X11 on Debian, you might want to use this keyboard layout on a mac, too. Unfortunately, macOS 11.2.3 (and probably older versions) comes with the standard Dvorak layout only, which can be quite annoying when combined with vim, since the placement of ‘:’ differs.

In order to install the default Programmer’s Dvorak layout I use home brew:

brew install --cask programmer-dvorak

Now, we have to apply a small patch to it:

curl https://immanuel-albrecht.de/wp-content/uploads/2014/12/umlauts.diff_.txt | sudo patch /Library/Keyboard\ Layouts/Programmer\ Dvorak.bundle/Contents/Resources/Programmer\ Dvorak.keylayout

Optionally, you might want to apply the numpad patch, too. (Since my MacBook Pro does not have a numpad, I did not bother to do this.)

curl https://immanuel-albrecht.de/wp-content/uploads/2014/12/USB_PC_Numpad-Patch.diff_.txt | sudo patch /Library/Keyboard\ Layouts/Programmer\ Dvorak.bundle/Contents/Resources/Programmer\ Dvorak.keylayout

That’s it, you’re all set to enjoy Programmer’s Dvorak with German umlauts. (Please note that some office applications use Shift+Alt+A as a shortcut, you have to disable this shortcut in order to write Ä within these applications!)