That and using multiple instances of the browser instead of one instance with many tabs helped me a lot. If i have to switch tasks i go to a new workspace and only open the software related to that task there. Once I’m done i just close everything in the workspace and move back to the previous one that is the same way it was before i switch.
I turn silent off when the home wifi connects. I don’t keep my phone on my pocket at home, but i also don’t allow notifications on most apps, and no noise or vibration on any notification.