I know the advice can sound contradictory and I remember that time. I'd say that give her space, but don't go completely dark on her. Don't leave the room if she's there. Be generally polite and if she engages with you, remember to validate and listen. Stay cool calm and upbeat. Your value is not tied to her and your marriage. You are worthy and valuable as a person.
I know it's hard to stay positive and upbeat, but I can tell you that it will make a huge difference - to how you feel and she'll definitely notice. As I said, start your journey for personal growth and keep doing things.
There was a poster here named TxHubby who basically after 2 years of throwing a pity party, got up and got a life. His WW was still at home and doing her thing, but he stopped giving a f#$k. He put his life together, and got in shape and improved his professional career etc. All the while being courteous and polite to his W but not caring whatsoever what she did or thought.
Start living YOUR life. Stop thinking of this as figuring out a tactic that will work. Tactics have a short shelf life. You having a totally different mindset and approach to life will yield in good results whether or not she wants to stick around.