I typically do this by compartmenting different computing activities into different buckets, so I can focus. So for example I boot into a hard-drive that is for casual surfing of the web with a few beers, and strictly for leisure. Another hard-drive for web development, and having the environment customized just for web development. Another hard-drive for trying out new software which typically degrades and breaks the system over time which is why it's specifically for trying out software (it doesn't affect my other systems).
1. cutting back on how many tools and software I use as much as possible. I don't need super sophisticated GUI editors if I have a well configured vim, I don't need a graphical password manager, I don't need a graphical VPN client. This may sound 70s-retro-ish but I found I get more done by using simpler tools.
2. stopped playing computer games. I used to be an avid gamer, MMORPGs, MOBAs, RTS, I was in several guilds, and teams. At one point I realised the immense amount of time this eats up, and what I could do if I spent that time doing something, anything else.