I get the issues with doom scrolling, but the desktop issue is pretty easily fixed. I have my home office set up with a couple KVM switches so that I can't be on my work laptop and home desktop at the same time, because both systems use all the same peripherals. That at least makes it harder to justify switching over and being (more) unproductive during my shift.
Also, I have found it helps to have music or a podcast going in the background to help keep your focus on what you're supposed to be doing.