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.
How to change x11 window size programatically
applescriptwindow-managerwinex11xquartz
Related Question
- How to change the size of a Google Hangouts window in AppleScript
- MacOS – How to change X11/Xquartz colour setting to 256 colors Using Bash Script
- Running MTGArena on MacBook Pro using Wine and DXVK
- Hostname in X11 window title
- OSX Window server vulnerabilities on catalina
- MacOS – How to fix a macOS screenshot of an X11 window that’s bleached / white / too light
Best Answer
You can install Homebrew and use it to install wmctrl using the following command:
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:
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!