cat > /usr/local/etc/X11/xorg.conf.d/keyboard-de.conf <<EOF Section "InputClass" Identifier "KeyboardDefaults" Driver "keyboard" MatchIsKeyboard "on" Option "XkbLayout" "de" Option "XkbVariant" "mac_nodeadkeys" EndSection EOFin my case FreeBSD as guest in VirtualBox on a Lenovo Thinkpad T460s