How to make Do Not Disturb follow your shift roster

Your phone's bedtime schedule assumes you go to sleep at the same time every night. On a rotating roster you might be asleep at 09:00 on Tuesday, 21:30 on Friday and 23:00 on a day off. Here are the ways to make Do Not Disturb keep up, and what each one costs you.

The short answer: Android's built-in Do Not Disturb schedules repeat by weekday, so they can't follow a rotating roster. You can get close by keeping your sleep blocks in a calendar and using a calendar-event rule or an automation app. Or you can use an app that reads the roster itself: Shifty Habits' Sleep Mode works out when you sleep around each shift and switches Do Not Disturb on and off without you entering anything.

Whichever you use, set it to let starred contacts and repeat callers through, so work can still call you in.

Why the normal bedtime schedule doesn't work

Every phone has a way to switch Do Not Disturb on at a set time: "every night 22:30 to 06:30", or "weekdays only". That's fine on a Monday-to-Friday job. On shifts it fails in three ways:

So the question isn't how to turn Do Not Disturb on. It's how to tie it to the roster instead of the calendar week.

Four ways to do it on Android

MethodFollows a rotating roster?EffortGood for
Turning it on by handOnly if you rememberEvery sleepOccasional shift work
Calendar-event rule (Pixel and phones close to stock Android)Yes, if your sleep is in the calendarEnter sleep blocks for every shiftPeople who already keep a detailed calendar
Automation app (MacroDroid, Tasker)Yes, with setupAn afternoon of building rules, and fixing them when they breakPeople who enjoy tinkering, and Samsung owners who want calendar triggers
Roster-aware app (Shifty Habits' Sleep Mode)Yes, from the roster itselfOne sleep rule per shift type, onceRotating cycles and rosters that change every month

1. Turn it on by hand

The quick settings tile works, and costs nothing. The trouble is the moment you need it: you get home after a night shift, exhausted, and the step most likely to be forgotten is the one between you and a phone call at 11:00. If you go this way, make it part of the same wind-down every time. The sleep routine guide covers building one.

2. A calendar-event rule

On Pixel phones and many others close to stock Android, Do Not Disturb (called Modes on newer versions) can be scheduled to run during events in a calendar, instead of at fixed times. You choose which calendar it watches. The menus vary between phones and Android versions, but it sits under Settings, then Sound or Modes, then Do Not Disturb schedules.

The catch is that it runs while an event is happening. If your calendar only holds your shifts, you'll get a quiet phone at work, not in bed. For sleep, you need a separate calendar of sleep blocks, kept up to date every time the roster changes. That's workable on a fixed rotation you can copy forward, and a chore on a roster that comes out month by month.

Samsung's Modes and Routines doesn't have a calendar-event trigger, so on a Galaxy phone this option isn't there.

3. An automation app

Automation apps such as MacroDroid and Tasker can switch Do Not Disturb on and off on almost any trigger, calendar events included. They work on Samsung phones too. They're powerful, but you're building the logic yourself: which calendar, which events, how the times are worked out, and what happens when a shift is swapped. You also need the sleep blocks to be somewhere the app can read, which usually means the same calendar chore as option 2.

4. An app that reads the roster: Shifty Habits' Sleep Mode

This is the one I built for it. Shifty Habits already knows your roster, whether that's a repeating cycle or a roster you enter as you get it, so it can work out the sleep windows itself:

For the nights that don't follow the plan, there's a Sleep now button, which stops by itself before your next shift, and a habit reminder can carry the same button, so "go to bed" can be one tap from the notification.

Sleep Mode is in Shifty Habits, a habit tracker built around rotating rosters. It's a Pro feature on Android 10 and later, and until 1 January 2027 every Pro feature is free for everyone. Open the app before then and you keep it for good.

Get it free on Google Play

Still getting the call from work

Whichever method you use, how you set up the exceptions matters more than how Do Not Disturb gets switched on. A sensible setup for shift work:

Sleep Mode offers exactly these choices: calls from anyone, contacts, starred contacts or nobody, repeat callers on or off, and alarms always ringing. It can also set your ringer, notification and media volumes for sleep and put them back afterwards. It uses a Do Not Disturb mode of its own, so your normal Do Not Disturb settings aren't touched, and on Android 15 and later it shows in the system's Modes list under the app's name.

Android does the call filtering itself. Shifty Habits never reads your contacts or your call history; the privacy policy has the detail.

What about an iPhone?

Shifty Habits is Android only. On an iPhone, a Sleep or Do Not Disturb Focus with a time schedule has the same weekday problem, so the closest you'll get is turning it on by hand or with a Shortcuts automation.

Frequently asked questions

Can Do Not Disturb follow a rotating shift schedule?

Not with Android's ordinary Do Not Disturb schedules, which repeat by weekday and time. You can get close by putting your sleep blocks into a calendar and using a calendar-event rule or an automation app, or use an app that reads the roster itself: Shifty Habits' Sleep Mode works out a sleep window around each shift and switches Do Not Disturb on and off by itself.

Is there an app that sets Do Not Disturb from my shift calendar?

Yes. Shifty Habits' Sleep Mode (Android 10 and later, a Pro feature that is free for everyone until 1 January 2027) takes your repeating cycle or changing roster, gives each shift type a sleep window, and turns on a Do Not Disturb mode of its own for those windows, with starred contacts and repeat callers still ringing through. Automation apps such as MacroDroid and Tasker can also switch Do Not Disturb on during calendar events, if you keep your sleep in a calendar.

How do I sleep after a night shift without missing a call from work?

Use Do Not Disturb with exceptions rather than silent mode: let starred contacts through, star your workplace and your manager, and allow repeat callers so anyone who rings twice within 15 minutes gets through. Alarms should always be allowed. Shifty Habits' Sleep Mode sets this up as a mode of its own, so your normal Do Not Disturb settings are left alone.

Can Android turn on Do Not Disturb during Google Calendar events?

On Pixel and most phones close to stock Android, yes: Do Not Disturb (called Modes on newer versions) can be scheduled to run during events in a chosen calendar. It runs while an event is happening, so for sleep you need sleep events in the calendar, not just your shifts. Samsung's Modes and Routines doesn't offer a calendar-event trigger, so Galaxy owners usually need an automation app or a roster-aware app instead.

Does Sleep Mode change my own Do Not Disturb settings?

No. Shifty Habits' Sleep Mode uses a Do Not Disturb mode of its own with its own call rules, so whatever you have set up for your normal Do Not Disturb is untouched, and when Sleep Mode ends your phone goes back to exactly how it was. On Android 15 and later it appears in the system's Modes list under the app's name.

Luke works shifts and built Shifty Habits because every habit tracker he tried assumed a Monday-to-Friday week he didn't have.

Everything here comes from working a roster rather than from reading about one.

Related guides