I have a german keyboard layout (QWERTZ), and I often need to type a tilde (~) without any other symbols attached to it (e.g. ñ). Currently, the only way I know of to inset a tilde is ⌥ N + Space, which is rather tedious. In comparison, on Windows I only need to press Alt Gr + +.
Is there a way to configure macOS to not require the additional spacebar press?