Use waitForProcess

We need xrandr to complete before calling after-setup.