getting individual screen resoutions

Riza Dindir riza.dindir at
Tue Aug 2 13:19:57 UTC 2022

Hello All,

I am using xorg Server 1.20.14 with X protocol version 11, revision 0.

I have a laptop that has a monitor connected to it. The laptop monitor
is 1366x768 and the external monitor has 1440x900 resolution.

I am using TWM.

Based on xrandr output, there is only one screen, screen 0. The laptop
monitor has geometry 1366x768+0+0 and the external monitor has
geometry 1440x900+1366+0.

Is it possible using xlib to get the geometry or positions of these
screens and maybe open x application windows on one of these monitors?

Is it possible to address individual monitors with :0.0 and :0.1? How?

My xrandr output is given below.

Screen 0: minimum 320 x 200, current 2806 x 900, maximum 16384 x 16384
eDP-1 connected primary 1366x768+0+0 (normal left inverted right x
axis y axis) 344mm x 193mm
1366x768      60.02*+
... clipped rest of resolutions.
HDMI-1 disconnected (normal left inverted right x axis y axis)
VGA-1 connected 1440x900+1366+0 (normal left inverted right x axis y
axis) 410mm x 256mm
1440x900      59.89*+  74.98
-- clipped rest of resolutions

Any help would be appreciated.

Kind Regards,
Riza Dindir

More information about the xorg mailing list