Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- from Xlib import display
- d = display.Display()
- s = d.screen().root
- output = os.popen("xrandr --listmonitors | grep '*' | awk {'print $4'}").read().splitlines()
- num_sc = s.xinerama_get_screen_count().screen_count
- width = s.get_geometry().width
- height = s.get_geometry().height
- print("Total count screens: %s" % num_sc)
- for i in range(num_sc):
- print("\tScreen %s(%s): %sX%s" % (i, output[i], width, height))
Add Comment
Please, Sign In to add comment