Can i resize any windows by a command?

I'm a new user of Ubuntu Mate, currently using Ubuntu MATE 18.04.
I want to adjust the size of a window of many different programs (vscode, eclipse, file explorer, ...) by the specified parameters (length, width, x, y).
For example, I am opening a window of vscode program, then I want to adjust the size of this window to 800 * 600 and position (20, 20) on the screen.
Can anyone suggest me how this can be done? Any comments or suggestions are welcome.

We can set the size and the position when open a application with the suffix --geometry. For examples, open Caja, size 300x50 at position left of screen and Y=20:
caja --geometry 300x50+0+20

1 Like