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

For discussions about programming, and for programming questions and advice


Moderator: Forum moderators

Post Reply
thoyej
Posts: 1
Joined: Sat Nov 04, 2023 3:51 am

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

Post by thoyej »

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

geo_c
Posts: 3064
Joined: Fri Jul 31, 2020 3:37 am
Has thanked: 2383 times
Been thanked: 948 times

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

Post 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

geo_c
Old School Hipster, and Such

User avatar
rockedge
Site Admin
Posts: 7047
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 3160 times
Been thanked: 2946 times
Contact:

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

Post by rockedge »

have some widows opened then try in a terminal:

Code: Select all

wmctrl -p -G -l
Post Reply

Return to “Programming”