A small Python script to set display scaling on GNOME/Mutter via D-Bus — no GUI needed.
If you run Ubuntu in a VM (particularly UTM/QEMU on macOS), spice-vdagent likes to reset your display scaling whenever the resolution changes — e.g. when you resize the VM window. This script sets it back to 200% from the command line by calling Mutter's DisplayConfig D-Bus API directly, the same API that GNOME Settings uses.