Page 1 of 1

How to set and get window position and size from command line?

Posted: Fri Nov 10, 2023 5:05 am
by thoyej

How to set and get window position and size from command line or programatically?


Re: How to set and get window position and size from command line?

Posted: Fri Nov 10, 2023 5:19 am
by geo_c

If you have window wmctrl installed you can do these things with commands and options.

Here's the man page for it. It's available in just about every linux distribution repo and built in to most puppy OS's:
https://linux.die.net/man/1/wmctrl


Re: How to set and get window position and size from command line?

Posted: Sat Nov 11, 2023 10:51 pm
by rockedge

have some widows opened then try in a terminal:

Code: Select all

wmctrl -p -G -l