

Seems like this is possible, but the method (and maybe ability) depends on your window manager.
If you’re using x11, you can interact with the window manager via the command line (so could set up the whole thing in a script). An example command line tool: xdotool (search for “interacting with x11 via command line” for more info).
If you’re on Wayland, one of the design principles was to avoid programmatically interacting with window size or position; the user will set up their composer to behave as they want, not how the programmer of that program wants, and especially not how programmers of other arbitrary programs want (it was a security issue at the extremes, or could be annoying for more common cases). But you, the user, do have control, though it depends on your DE and what Wayland compositor it is using. On fedora KDE, you can use KWin scripts (which supports several languages).
There’s also some other window managers that can offer better control, and perhaps it’s enough for the window manager to simply remember the position of windows when they are closed (which I think Wayland does or can be configured to do easier than writing a script, then you just need a launch script for the programs in your shortcuts).








Not sure if you’re exaggerating the low resolution, but I haven’t noticed quality issues on Amazon. I doubt the stream I’m getting is 4k, but it’s certainly better than 720p.
I’m using the flatpak firefox from the fedora install instructions that comes with more codecs, though. It plays a bunch of video that VLC won’t render with my current setup and I haven’t yet put the effort into getting full codecs outside of Firefox yet, but maybe your system has a similar codec situation and prime video defaults to some old or neglected format that caps out at the res you see.
Or it could be what you think and for some reason my system isn’t triggering it. Argh, this future is annoying.