How do you co parent

If you and your ex are no longer together and have a newborn or infant.. how do y’all work out a schedule. How do y’all handle it? If you still love that person then how do you control your emotions around that person?

Trying to figure out how to do this with my ex. We have a 7 week old, i still love him and want him but he doesn’t want me.