For being productive, you can try your favorite things in between while working. If you are feeling burnout then shut your laptop for few minutes and take a walk, talk to your friends, make a coffee for yourself, watch some show, listen to some music, talk to your family members about anything. These are very small things but they are effectively workable.