The Activate Sleep Mode Workflow Explained
The activate-sleep-mode ClawFlows workflow closes your day cleanly — charges devices, dims screens, silences notifications, and preps tomorrow.
Morning routines get all the attention, but the workflow that matters more is the one that runs in the last five minutes of your day. What you close, what you leave open, what you queue up for tomorrow — all of it shapes how the next morning starts. A messy shutdown means a chaotic open. A clean shutdown means you wake up ready.
The activate-sleep-mode workflow from ClawFlows is the evening counterpart to activate-focus-mode. It handles the end-of-day ritual the way focus mode handles the start of a deep work block: with the right steps, in the right order, every time.
Key Takeaways
- activate-sleep-mode is a ClawFlows workflow in the Focus & Deep Work category that closes your day cleanly.
- It silences notifications, dims screens, queues charging, and preps tomorrow's context.
- It pairs with activate-focus-mode and end-workday as part of a full daily rhythm.
- The psychology of a clean shutdown matters as much as the mechanics — it's a pre-commitment to tomorrow.
- It's open source at nikilster/clawflows and fully customizable.
The Problem With Ad-Hoc Shutdowns
Most people's end-of-day isn't a routine — it's an ending. You close the laptop at some ambiguous time, notifications keep arriving, your phone keeps buzzing, you tell yourself you'll put it down in a minute. An hour later you're still scrolling.
The problem isn't discipline. It's the absence of a ritual. Without a named transition, there's nothing to cross. Your brain doesn't know you're off duty because nothing marked the boundary.
activate-sleep-mode creates that boundary. Running it is the act of ending the day. After you run it, you're done. The workflow handles the mechanics and your brain gets permission to switch off.
What the Workflow Does
When you invoke activate-sleep-mode, the default flow steps through:
- Saves current session state so tomorrow morning can resume cleanly
- Closes distracting apps — social media, news, work tools
- Sets system Do Not Disturb until morning
- Dims screens and activates night shift for any devices still on
- Queues charging for phones, tablets, laptops
- Backs up anything unsaved — notes, open documents
- Preps tomorrow's context — briefly reviews calendar, sets morning priorities
- Reminds you of the morning workflow — e.g. "morning-briefing scheduled for 7am"
- Announces sleep mode active so you have a clean psychological marker
The whole thing runs in about 30 seconds. It's a ritual that scales.
What About Smart Home Integration?
If you have smart home gear (HomeKit, Home Assistant, Hue, etc.), you can add steps to turn down lights, adjust the thermostat, lock doors, or trigger an existing "bedtime" scene. This is one of the most popular customizations.
The Psychology of a Clean Shutdown
This isn't just about mechanics. A named ritual is a pre-commitment device. When you invoke activate-sleep-mode, you're telling yourself — and your brain listens — that the day is over. You crossed a threshold.
We cover the psychology angle in depth in The Psychology Behind Activate-Focus-Mode, and the same principles apply to sleep mode. Rituals have weight that loose habits don't.
Without a ritual, you rely on willpower. With a ritual, you rely on the workflow. The second works better because willpower is finite and workflows are not.
A Full Daily Rhythm
The three workflows that bookend a good day:
- morning-briefing — 7am, assembles the day (see Morning Briefing Workflow: Start Your Day Right)
- activate-focus-mode — multiple times during the day for deep work blocks (see Focus Mode: The Workflow That Saved My Week)
- end-workday — end of the work day, closes the work context
- activate-sleep-mode — end of the evening, closes the personal context
That's four workflows handling the major transitions of a day. Each takes seconds to invoke and replaces minutes of decision fatigue.
end-workday vs activate-sleep-mode
These are different. end-workday is about closing the work context specifically — saving open tickets, logging time, posting EOD updates. It runs around 5 or 6pm.
activate-sleep-mode runs later, closer to bedtime, and handles the whole-device and whole-person shutdown. Run both in sequence on a normal workday.
Some users with less formal work schedules just run activate-sleep-mode. That's fine too.
Customization Examples
Some ways people have customized activate-sleep-mode:
- A parent added a step to review tomorrow's kid logistics (school pickup, activities)
- A reader added a step to open their current book on the Kindle at the current page
- A runner added a morning alarm confirmation step
- A remote worker added a step to set their time-tracking tool to "off" for the day
- A recovering workaholic added a lockout step that disables work apps until morning
The workflow is a template. Make it yours.
When Should You Run It?
30 to 60 minutes before you actually want to be asleep. That's the window where you're committing to wind down but haven't yet. Running it immediately before bed is too late — the ritual can't do its job if you're already in bed scrolling.
Run it in the living room. Put the phone down. Read something on paper. Let the workflow do its job and your evening will start to compress into actual rest instead of ambient distraction.
FAQ
Does it actually stop me from using my phone?
No workflow can enforce that. What it can do is set Do Not Disturb, dim the screen, and create a clear ritual marker. The rest is on you. For enforcement, pair it with app blockers like ScreenTime.
Can I run it on weekends?
Yes, and many users do. Weekends benefit from a clean close too, though you might want a different variant with more gentle steps (no work-context closing, for example).
What if I forget to run it?
Nothing bad happens — your phone just keeps buzzing. Some users schedule the workflow to auto-run at 10pm so they can't forget.
Does it work across multiple devices?
It can. If you have a skill that talks to your phone, tablet, and laptop, the workflow can trigger steps on each. Most users start with their primary device and expand.
Is there an undo?
If you change your mind after running it, there's a companion exit-sleep-mode workflow that restores the previous state. Most people never use it — the whole point is that once you close the day, it stays closed.
Close Your Days On Purpose
A day without a clean ending is a day that bleeds into the next. activate-sleep-mode is how you stop the bleed. Install ClawFlows (see How to Install ClawFlows in One Command) and try it tonight. Your mornings will thank you.
Explore all 113 workflows at aiskill.market/workflows or submit your own.
Sources
- nikilster/clawflows on GitHub — source for activate-sleep-mode
- OpenClaw documentation
- 113 Workflows That Run Your Digital Life
- Focus Mode Spotlight
- Anthropic Claude docs