The client already does this during the initial packet exchange, we should be able to dump the monitor data to a JSON file and add a server command to apply it to the X11 server (and eventually other backends).
This could even be extended to include a monitor-sync command that does this to a remote host.
If this is done properly, the server should figure out that the geometry is the same and leave it unchanged.
We could also support a default vfb config, maybe just using --resize-display=/path/to/monitors.json
(adding a GUI for it may be a step too far)
The client already does this during the initial packet exchange, we should be able to dump the monitor data to a JSON file and add a server command to apply it to the X11 server (and eventually other backends).
This could even be extended to include a
monitor-synccommand that does this to a remote host.If this is done properly, the server should figure out that the geometry is the same and leave it unchanged.
We could also support a default vfb config, maybe just using
--resize-display=/path/to/monitors.json(adding a GUI for it may be a step too far)