I have a routine that keeps me productive. Basically, I get to work the same time most days, even drinking coffee at the same time and such, as well as taking breaks at the same time.
It's a little repetitive but it works great to keep me productive as I'm self-employed.