Don't wörk in your living room. Especially don't work at the desk that you also lurk from.
When I wörked from home I set up a table in the kitchen and worked from there.
I usually listen to hp lovecraft audiobooks as a background noise. I usually don't process it in my mind while I work but whenever my mind starts to wander it catches it somehow.
Also I feel like it helps if you give you inner monkey something to do while you work. Eg. drink a cup of tea. Or work while standing. In these cases you inner monkey can hold the cup and drink from it while your wörking or move your bodyweight from one leg to the other when you stand.