Under centrifugal force fluids separate into bands based on mass. The same principle as oil and water separating under gravity. Use giant centrifuges to spin compressed air until it separates into bands, then extract the bands corresponding to greenhouse gasses.
I don’t know the energy requirements for this or if there is a better way of doing it. But if you’re looking for blue sky thinking, that’s what I’ve got.