Re: Getting and setting window size and position

killermoehre <[email protected]> Wed, 03 Sep 2025 08:10:50 +0200
Newsgroups gmane.comp.xfce.user
Message-ID <[email protected]>
--===============3445570594617034615==
Content-Type: multipart/alternative; boundary="=-x33/HBMi3IS1py7YXwTn"

--=-x33/HBMi3IS1py7YXwTn
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Am Dienstag, dem 02.09.2025 um 14:26 +0300 schrieb Jack:
> I require to **Tile** the currently active window into one of the pre-def=
ined positions listed below: =20
>  =20
> 1.The upper left corner =20
> 2.The lower left corner =20
> 3.The upper right corner =20
> 4.The lower right corner =20
> 5.The top side =20
> 6.The right side =20
> 7.The bottom side =20
> 8.The left side =20
> 9.Full screen =20
>  =20
> The corner windows (1-4) must be 1/2 the width and 1/2 the height of the =
monitor. The side windows (5,7) must be the full width and 1/2 the height o=
f the monitor. The side windows (6,8) must be 1/2 the width and the full he=
ight of the monitor. =20
>  =20
> **The question is how to obtain the active window's current X,Y,width,hei=
ght so that I may calculate the new values which are compatible with the ut=
ility command (which one is the best?) which can correctly interpret the va=
lues and position the window to the EXACT (bit-by-bit) location and size?**=
 =20
>  =20
> A simple code example (a bash script) that reads the values from the curr=
ent active window and then moves the window to one of the corner positions =
would be nice to examine. =20
>  =20
> I intend to test the script by opening four terminal windows and subseque=
ntly positioning each one into a different corner. I will then observe if t=
hey overlap one another or extend beyond the monitor's boundaries. If this =
functions correctly, I will proceed the same test with standard application=
 windows for example four browser windows etc. =20
>  =20
> This initially appears to be a straightforward task, but in reality, it i=
s not simple at all. =20
>  =20
> Thank you.

Xfwm4 can already do this. You just need to map the key commands for this.

Check out xfwm4-settings =E2=86=92 Keyboard.

BR =20
Silvio

--=-x33/HBMi3IS1py7YXwTn
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<p>Am Dienstag, dem 02.09.2025 um 14:26 +0300 schrieb Jack:</p>
<blockquote type=3D"cite">
<p>I require to <strong>Tile</strong> the currently active window into one =
of the pre-defined positions listed below:</p>
<p>1.The upper left corner<br />
2.The lower left corner<br />
3.The upper right corner<br />
4.The lower right corner<br />
5.The top side<br />
6.The right side<br />
7.The bottom side<br />
8.The left side<br />
9.Full screen</p>
<p>The corner windows (1-4) must be 1/2 the width and 1/2 the height of the=
 monitor. The side windows (5,7) must be the full width and 1/2 the height =
of the monitor. The side windows (6,8) must be 1/2 the width and the full h=
eight of the monitor.</p>
<p><strong>The question is how to obtain the active window's current X,Y,wi=
dth,height so that I may calculate the new values which are compatible with=
 the utility command (which one is the best?) which can correctly interpret=
 the values and position the window to the EXACT (bit-by-bit) location and =
size?</strong></p>
<p>A simple code example (a bash script) that reads the values from the cur=
rent active window and then moves the window to one of the corner positions=
 would be nice to examine.</p>
<p>I intend to test the script by opening four terminal windows and subsequ=
ently positioning each one into a different corner. I will then observe if =
they overlap one another or extend beyond the monitor's boundaries. If this=
 functions correctly, I will proceed the same test with standard applicatio=
n windows for example four browser windows etc.</p>
<p>This initially appears to be a straightforward task, but in reality, it =
is not simple at all.</p>
<p>Thank you.</p>
</blockquote>
<p>Xfwm4 can already do this. You just need to map the key commands for thi=
s.</p>
<p>Check out xfwm4-settings =E2=86=92 Keyboard.</p>
<p>BR<br />
Silvio</p>

--=-x33/HBMi3IS1py7YXwTn--

--===============3445570594617034615==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Xfce mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce
http://www.xfce.org

--===============3445570594617034615==--