Made rest of commands wait for xrandr