Indicating in your will that you want to leave some money to a charity that reflects the values you were passionate about is a fine gesture. Living a life of frugality so that you can leave a ridiculous amount of money to charity once you're gone: that's next level philanthropy.