Closed rgrams closed 5 years ago
My proposal:
local displays = defos.get_displays()
Returns a table displays
, where displays[1]
would be the main display. Each display would be a table that would contain:
bounds = { x = 0, y = 0, width = 1920, height = 1080 }
, which would delimit the rectangle in client space (coordinates to be passed to defos.set_window_size()
).resolution = { width = 3840, height = 2160 }
, which might be different from screen bounds on, for example macOS when scaling is turned on on Retina displays.refresh_rate = 60
name = "LG Ultra HD"
Yup! That would be perfect!
Closed by #67
It would be great if DefOS had a function to get the number of available displays. Also, if possible, to get the name or some kind of identifier for each display.