How can I change the size of an x11 window with a script, be it AppleScript or otherwise. I have a process running using wine which is using XQuartz as the windowing system and I want to force the x11 window to a particular size.
You can install Homebrew and use it to install wmctrl using the following command:
brew install wmctrl
Then run wmctrl like this:
It should give you a list of all the available windows on screen. Take the ID for the game window and run:
wmctrl -i -r windowid -e 0,0,0,1600,1200
where windowid should be replaced with the ID of that window.
Note: I don't think your mission is likely to succeed, as most programs that do not offer resize handles are not able to handle resizing their windows at all. You'll probably end up with the contents being the same size as always, and then just a white/black color for the rest of the enlarged window. But it is worth a try!