If you're around him and want to have a different energy from him I think it needs to be conscious. My ex Upw was a pessimist and it was a real battle getting things done. I found what worked is that you have to be (1) aware of the difference in your energies

and (2) set your mind clearly on what you are going to do, with or without the person.
Because pwBPDs are unpredictable, #2 becomes important if you have a pwBPD.
Basically, drive yourself.
If you're on your own, do all the normal things one would do to keep one going. If you wonder why you're drained being around him, don't worry you're not alone. My ex was an energy leech. Made it her pastime.
Gotbushels, yes. It falls into that big "acceptance" category. I can't change him and I know he's one of those "rain on the parade" types. He doesn't consciously try to discourage me, so it's not as obvious, but he is a "glass half empty" guy.
I used to do home projects with a wonderful friend/handyman, who unexpectedly died a few months ago. There's no way I could ever get hubby to do work around here. I'm grateful that he pays for stuff, but he's definitely not a blue collar guy. So lately I've been tackling all my projects solo. I've been quite handy myself, but now I'm taking on projects that are more intimidating, and that's been rewarding. The irony is that the more I'm capable of, the more distance it creates between me and my husband.
In comparison lies madness.
You have real feelings about being with your H, and how he is behaving and treating you.
If you compare YOUR situation to somebody else's and convince yourself that you "don't have much to complain about" you are invalidating yourself... .and driving yourself nuts. Gently stop yourself from doing that to yourself if you can.
Start by accepting that these feelings of yours are real, are valid... .and consider whether they would guide you toward somewhat different actions in the future or not.
Yes, I remember from grad school the idea of if you have to compare something, compare self to self. Doing that, I see real progress, even comparing Cat2015 to Cat2016. And thank you, Grey Kitty, for reminding me that my feelings are valid, even if my complaints are minor. After all, a constant drip of water eventually wears away the stone.
I do think gratitude is a good practice... .I enjoy being with other people, but then I need some alone time to recharge. Sometimes I do feel as if I am with someone who is taking energy... .One thing that I think I do is feel a bit on "alert" in the presence of someone moody.
My H will say " they aren't interested in me, they are ignoring me"... ."you aren't that excited to see me" and he got angry at me.
Notwendy, you've touched on two very important themes: gratitude and not taking things personally. I feel so grateful for the life I lead but I get irritated because my husband, as blessed as he is by circumstances, seems so profoundly ungrateful. (I know--not my business... .)
And "they aren't interested in me" is something I hear about our cats or the horses. He's always filtering individuals, whether four-legged or people, by how much they like or are interested in him.