I struggled with the same problem, the 8 hours of solid productivity a day is a killer after working remotely during several days. My solution for that is the Pomodoro technique, I wrote an article about that, hope you find it useful: https://medium.com/@marcochvez/how-i-get-my-workday-done-in-...