Turn off outputs before applying config

This is needed to avoid the case where xrandr turns on new outputs
before turning off old ones. On some devices, this will cause the output
limit to be exceeded, causing the entire command to fail.