I usually listen to repetitive music (makes it easy to focus) or just play some TV shows I basically already know by heart (The Simpsons) in the background/on another monitor.
This provides something to look at to distract me for a short time (helps me to get ideas popping back into my mind) and just generally provides some background noise.
I have tried listening to the same music approach as well. Its also a very good technique.
Though a slight difference I felt was watching movie and coding does not leave me looking for entertainment at the end.
This provides something to look at to distract me for a short time (helps me to get ideas popping back into my mind) and just generally provides some background noise.