How to save a dual display as a default layout

The top part of this guide ("raw commands") has step-by-step instructions: