Here's something I've found helpful for staying focused. I divide up the day into different 'time zones' or windows where I'm only allowed to use the computer for certain tasks. Each window is signaled by a different desktop background.
For example, I have a two-hour window in the morning where I'm only allowed to use my computer for creating stuff – writing, coding, and so on. In that window, I use this background:
