|
|
@ -28,6 +28,16 @@ Date: 2023 Mar 04 |
|
|
|
|
|
|
|
""" |
|
|
|
|
|
|
|
import Xlib.display |
|
|
|
|
|
|
|
display = Xlib.display.Display() |
|
|
|
root = display.screen().root |
|
|
|
for m in root.xrandr_get_monitors(True).monitors: |
|
|
|
connector = display.get_atom_name(m.name) |
|
|
|
print( |
|
|
|
f"{connector}, {m.width_in_pixels}x{m.height_in_pixels}, " |
|
|
|
f"x={m.x}, y={m.y}" |
|
|
|
) |
|
|
|
|
|
|
|
if __name__ == "__main__": |
|
|
|
pass |
|
|
|