- Get enough sleep. If you dont get enough sleep you are like an intoxicated person or like a person with ADHD. Then it is difficult for you to resist unhealthy or useless stuff.
- Meditate. Willpower is like a muscle. If you excercise the muscle, it will become stronger. Meditation is like excercise for the mind. During meditation, you get multiple thoughts to derail you but you will learn to ignore them and concentrate on the object of interest. The more you meditate, the easier for you to ignore the useless stuff.
- First thing first. Willpower is a limited resource. So you have to use it carefully. The best way to use it is to build good habits so that good things become automatic. If a habit is ingrained, you don't need to expend willpower to do that. The mind will do it on auto pilot. Another thing is to use the limited willpower you have to do difficult and creative things first rather than checking facebook or answering email.
Source:https://www.youtube.com/watch?v=JH2F805BJeE from the book How to have more will power - by Kelly McGonigal