To be honest I start my day early most days even at the office so I usually do have a good chunk of time for dedicated work to start my day.
There are some days where I don't write any code at all but it's not always due to Slack. It's usually meetings, planning, troubleshooting, brainstorming with teammates.
Have you actually been told you need to respond within 20 minutes or is that just the general feeling you have?
If you are really blocked you could just try closing Slack for an hour and do some work. If someone really needs to get in touch with you they'd come find you :)
Haha, no one has told me that, but Slack is engineered to make people feel an urgency to respond.
I feel like it takes an organizational change to get teams to fight the urge to treat Slack like an instant distraction machine, so it'd be nice if the tool itself fought that pattern. However, I think it's built to encourage that pattern ☹️
Another idea that might work depending on your team and work environment is bringing it up at the next team meeting and see if you could agree to set aside a certain time of the day where you can all take a "slack break" or just not be obliged to respond immediately.
For example "No Slack before 930am and after 1pm" or something like that?
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.