There’s one highly specific genre of music I listen to while I code. Nothing else. If I take a break, I turn it off. If I get distracted, I turn it off. I only listen to it when I work.
I use the sandwich method of booking meetings; only at the beginning or end of the day. Also the times when I look at my emails. Slack is harder to turn off because ops so I let that one slide.
When I need to concentrate, flip on my playlist, and go to town.