def METHOD_NAME():
    """Queries xrandr and builds a dict of the displays and their state.
    The dict entries are key by the display and are bools (True if
    connected).
    """
    displays = {}
    for line in execute("xrandr -q", ignore_errors=True).split("\n"):
        if "connected" not in line:
            continue
        is_on = bool(re.search(r"\d+x\d+\+(\d+)\+\d+", line))
        parts = line.split(" ", 2)
        display = parts[0]
        displays[display] = (
            (True, is_on) if parts[1] == "connected" else (False, is_on)
        )
    return displays