The Serenity Prayer - “God grant me the serenity to accept the things I cannot change, Courage to change the things I can, and Wisdom to know the difference.”
I don’t consider myself very religious, but this has always stuck with me.
I loved being able to sleep in, do what I felt like doing during the day, and then going to work. I also enjoyed being alone at night.
It was hard on my body, though. I don’t think my brain ever fully adjusted, because on the weekends it was like my body tried to switch me back to a normal schedule (because I was hanging out with family and friends), and I had to re-adjust on Monday. It also doesn’t really work with dating. And I wanted to kill the landscaping people who would trim the hedges at my apartment complex at 10am.
The Science of Self Control is an excellent book about willpower and, well, self control. It goes into the science of it and how to use that to your advantage.
One thing I do is to reduce friction. You are more likely to do something if you make whatever it is easier to do. Conversely, if you want to stop doing something, increase friction (make it harder to do). Two examples:
You want to go to the gym in the mornings? Go to bed a bit earlier, get everything ready the night before, and maybe even sleep in your gym clothes.
Your want to stop eating cookies? Put them somewhere you’re less likely to walk past them or see them.
In your case, maybe try removing things that are distractions, e.g. put your phone on the other side of the room.