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.
Take a couple sick days and spread a rumor that the boss is gonna fire his lover because he/she also fucked his partner.