I use separate work and fun computers for the most part. When I am done with work, I try moving rooms, starting a video game, or cooking dinner.
My current setup is a work laptop, a home laptop, and a home desktop. I set out goals for what I need to accomplish and break my time into chunks. I don't get on my desktop unless I am going to do something not work related.
Damn good call. I'm on my computer trying to read something or watch a show and VS Code is just calling my name sometimes.
Of course, it's easy to have the problem in the other direction, where Reddit is only a click away when you should be writing acceptance tests. 😁
Admittedly, I have it set up so I can work on my personal computer if need be (vpn, dev environment) but it is there in a pinch. I try to enforce the separation for work/life balance and mental health.
I know the problem of distraction rabbit holes well and I hate using website blocking software. RescueTime is one option. You can get more analytics on your website viewing habits or set a time limit for how long to spend on a task/site.
I've been considering getting a desktop to help with this. Gonna go for it after reading your comment. Thanks!
Even though I don't work remotely, I too find it hard to switch gears at the end of the day. I like the cooking dinner suggestion in particular, ymmv :)
Or, you can try using different browsers. I use Chrome for work, Chromium for freelance, and Firefox for everything else. If you don't have the spare cash for buying separate hardware, this can be a good way to go about it. :)
Using you suggestion, It could also use dual boot OS or dual user account, one for work, another for personal life.
My setup is like @Alyss, work laptop and personal desktop/laptop.
I do like 1/2 times week remote, and I'm a lot more productive and focused.
I don't have trouble disconnecting from work, what I do after finish is cooking or watching TV in living room.
Also, I work in my bedroom, is where I have my desk ;)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.