import os

def get_screen_info():

    screen_id = os.environ.get("STY", None)
    if screen_id:

        screen_num = os.environ.get("WINDOW", None)

        return screen_id, screen_num

    return None, None

0 Comments

Leave a Reply

Your email address will not be published.