def METHOD_NAME(self):
    displays = []
    for line in util.cli.execute("xrandr -q").split("\n"):
        # disconnected or connected
        if "connected" not in line:
            continue
        name = line.split(" ", 2)[0]
        resolution = RESOLUTION_REGEX.search(line)
        active = resolution is not None
        connected = "disconnected" not in line
        added = connected and not active and name not in self._connected_displays
        removed = not connected and active and name in self._active_displays
        displays.append(DisplayInfo(name, resolution, connected, added, removed))
    self._connected_displays = [
        display.name for display in displays if display.connected
    ]
    self._active_displays = [display.name for display in displays if display.active]
    return displays