def get_screen_dimensions():
    """
    Returns primary screen width and height in pixels
    """
    import mss
    with mss.mss() as sct:
        for monitor in sct.monitors:
            if monitor['left'] == 0 and monitor['top'] == 0:
                break
    return monitor['width'], monitor['height']
