Same here. I have a personal mind frame of:
"If you have the option to work on something you like on your computer or just even glance outside into the sun for a moment, always choose the latter."
This golden rule has given me more benefits - including finishing the task way faster I would have taken longer if I just sat in front of the computer.