I'm sure there are more elegant ways of doing this, but I wanted this too so I created a cmd file for each scenario. There's no limit to how many you could create. In my case there are 2, normal and without any docks displayed, that I use for demos. I'm running Windows 10.
When you change your dock layout and exit the app, the global.ini file is updated (Specifically, the DockState variable). I made a copy of my default global.ini that I use most of the time, to global-Deafault.ini. I then made the DOCK changes that I wanted, exited the app (so the global.ini would update) and then copied that global.ini to global-NoDocksForDemos.ini
I then created 2 cmd files as follows (replacing [your user name] in the path):
note: The START prefix in the last line is so that the CMD window will close when the OBS exe starts. Without that, the CMD window would remain open until OBS is closed. The "" prefix is needed if the command that follows it is in double quotes. See
this article for the details.
You can then either put those on your desktop to execute or create short cuts for them so that you can add icons and other parameters and put the shortcuts on the desktop.
Then you simply click the one that you want for the layout that you want..
OBS_ForDemo.cmd
---------------------------
@Echo Off
CD C:\Users\[your user name]\AppData\Roaming\obs-studio
Copy global-NoDocksForDemos.ini global.ini
CD "C:\Program Files\obs-studio\bin\64bit"
START "" "C:\Program Files\obs-studio\bin\64bit\obs64.exe"
OBS_Default.cmd
---------------------------
@Echo Off
CD C:\Users\[your user name]\AppData\Roaming\obs-studio
Copy global-Default.ini global.ini
CD "C:\Program Files\obs-studio\bin\64bit"
START "" "C:\Program Files\obs-studio\bin\64bit\obs64.exe"