ignore her texts, no one says you have to respond to them.
And when she tells you the marriage is over "countless times", what have you told her when she says this to you? Do you argue with her and tell her she should hang in there and work on the marriage or do you agree with her? If it's the former, why not stop that and just agree with her, "yes you're right, it's hopeless, our marriage will never work", end of conversation.
And if she refuses to say bye to you when she leaves for work, it's disrespectful, and you put up with it which communicates to me that you're willing to be disrespected just to keep her in your life - how well is that working for you? This is just one example, I'm sure you're full of more examples of her openly disrespecting you.