Once a VM is setup, don't use virt-manager. Use virt-viewer instead, which I think accepts the typical X/Windows -g options. I know with Spice and QXL, we can resize the window easily and inside the guest, we can use xrandr to set display sizes.
I don't really use full desktops inside my VMs, since it is more convenient to run a specific tool through an ssh -X tunnel and specify the desired geometry on that command line like any X/Windows client program would support. I prefer remotely run programs to fully integrate into my desktop.
For example,
Code:
xterm -geometry 80x22+0+630 $XTERM_OPTS -e ssh -X deneb &
The geometry option is built-into XLIb, so any GUI programs that don't support it means the developers went out of their way to remove the support. I.e. they suck.
Some programs translate their own size and position information. Like Brave Browser,
Code:
/opt/brave.com/brave/brave-browser \
--window-position="97,0" \
--window-size="1683,1153" &
Or you can use xdotool to place and resize a window based on the class or title.
Code:
xdotool search --name "Mozilla Firefox" windowmove 170 0
xdotool search --name "Mozilla Firefox" windowsize 1600 815
That's 3 different examples. BTW, the firefox instance is running on a different system and those xdotool commands work on the local X/Server.
I have no clue if Wayland supports it or not.
Bookmarks