How to set and get window position and size from command line or programatically?
How to set and get window position and size from command line?
Moderator: Forum moderators
-
- 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?
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
- 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?
have some widows opened then try in a terminal:
Code: Select all
wmctrl -p -G -l