Sometimes, when I work, I get bored and even a little sleepy or distracted. What works like magic for me is listening to music.
My go-to music is searching for "Gaming Music" on YouTube and listening to tracks that run for 1-3 hours long. For example, I am listening to this now:
What do you listen to?