Recipes and examples
Rule examples you can copy
Fourteen ready-made rules for the Rules tab, in the builder's own words, with what each one does, why it is safe and how to tune it. Rules are Pro.
- Pro
A rule is a standing instruction that Hedroom follows on its own: when an app is in a certain moment, do one gentle thing to it. This page is a catalog of rules that the real rule builder can make, so you can copy one, change it and see what it does on your Mac.
Every example here is an example, not a recommendation of specific numbers. Hedroom’s builder offers a short list of moments, and the numbers inside them (3 times usual, 80% of a core, 10 minutes) are the builder’s own. Where a number can change, the example says how to judge it. Every rule that runs writes a receipt, including the ones that did nothing useful.
How a rule is written
The Rules tab and the full builder write a rule as one sentence: When [app] [moment] → [action]. The full builder, New rule, has four steps:
- Which app? Choose Any app, one of the apps open now, or More apps for any app in Hedroom’s library.
- When it… Choose a moment.
- Then… Choose an action.
- Safety. Two guards that are always on, and one you can switch.
The sentence updates as you choose. Under it, Hedroom shows an estimate from your last 7 days (“Would have run 3× in the last 7 days”, or “Not enough history yet. Hedroom needs about a day of watching to estimate this.”). It is only an estimate. The real result is in Receipts.
In each example below:
- When is the app and the moment.
- Then is the action.
- Only if is what has to be true as well. Some guards you switch on. Others are always on.
- Cooldown is how long the rule waits before it can act on the same app again. The builder does not let you change it: it is 30 minutes.
What every rule shares
These apply to all fourteen examples, so they are not repeated in each one.
- Cooldown is 30 minutes. A rule also runs at most 6 times an hour, all rules together run at most 20 actions an hour, and Hedroom acts on one app at most once every 5 minutes.
- A rule fires when its moment turns from false to true. It does not fire again while the moment simply stays true. After the cooldown it can fire again only if the earlier action has been undone.
- A rule never acts on the app in front of you. If you switch to the app, a moved or paused app is put back.
- A rule skips apps playing audio, using the microphone or on a call. The Safety step shows this as “Skip while playing audio or on a call”, always on.
- A rule never acts on Apple processes, Hedroom itself, or an app on your never-touch list.
- A paused app resumes when you click it, when the moment ends, and after 60 minutes at most. The Safety step shows “Resumes automatically, at most 60 minutes”, always on.
- A rule that pauses an app asks first unless Hedroom’s library marks the app as safe to pause. A rule that relaunches an app made in the builder always asks first.
- Rules are part of Pro. Without Pro, rules you saved stay in the list with the badge “Paused — Pro” and do not run. Turning a rule off is always free.
Memory
A memory rule watches for an app that has grown far past its usual size. Its moment is “uses more than 3× its usual memory”. That moment is true only while Hedroom has an open leak finding for the app, which needs the app to be at least 3 times its usual size, at least 1 GB (or 6% of your RAM, if that is larger), for about 20 minutes. A brief spike does not count. Memory explains the detector.
Example 1: relaunch Slack when it has grown
- When Slack uses more than 3× its usual memory
- Then Ask me to relaunch it
- Only if Slack is not in front, not on a call and not on your never-touch list
- Cooldown 30 minutes
Why it is safe. A relaunch rule made in the builder always asks. Nothing quits until you press Do it. Slack is marked in Hedroom’s library as safe to relaunch, but the ask stays.
What you will see. A notification titled “Relaunch Slack?” that says “One of your rules wants to do this now. It asks first, and you can skip.” with Do it and Skip. After Do it, Slack quits like ⌘Q and opens again, and five to fifteen minutes later a receipt in Receipts starts with “Rule:” and says how much memory came back, or “No measurable effect.” If the rule is flagged, see “How a rule stops itself” below.
Pro to run. Yes.
To tune it. The 3× in the builder is fixed for this moment. If the rule asks too often, check Slack’s usual size in its App detail page. Hedroom learns that size from your own use, so a rule on a new app is quiet for the first hours.
Example 2: relaunch Microsoft Teams when it has grown
- When Microsoft Teams uses more than 3× its usual memory
- Then Ask me to relaunch it
- Only if Teams is not in front, not on a call and not on your never-touch list
- Cooldown 30 minutes
Why it is safe. Hedroom’s library does not mark Teams as safe to relaunch, because it can lose work. So the rule asks every time, and it will never relaunch Teams without your tap. A call is skipped. This is also a ready-made template in the builder, under Start from a template.
What you will see. “Relaunch Microsoft Teams?” with Do it and Skip, then a receipt.
Pro to run. Yes.
Example 3: ask about any app that has grown
- When any background app uses more than 3× its usual memory
- Then Ask me to relaunch it
- Only if the app is in the background, is not Apple’s, is not on your never-touch list and is not on a call
- Cooldown 30 minutes
Why it is safe. The same ask as above, for each app that qualifies. The notification names the app, so you decide each time.
What you will see. One “Relaunch
Pro to run. Yes.
To tune it. This is the broadest rule on the page. If you want only a few apps, make one rule per app (Example 1) instead. Relaunch rules made in the builder always ask, so an app that is not safe to relaunch is never relaunched without your tap.
CPU
A CPU rule moves a busy background app to the efficiency cores, the Mac’s low-power cores. The app keeps working, only more slowly, and your foreground work keeps the fast cores. Moving an app is the gentlest action, so these rules do not ask first by default.
Example 4: a sync client that works hard in the background
- When Dropbox, Google Drive or OneDrive uses lots of CPU in the background
- Then Move it to efficiency cores
- Only if the app is not in front, not on a call and not on your never-touch list
- Cooldown 30 minutes
“Lots of CPU” in this template means at least 80% of one core for 3 minutes, while the app is in the background.
Why it is safe. Nothing is paused or quit, so a sync keeps going. The app goes back to normal priority when the moment ends or when you open the app.
What you will see. The Rules row reads “Ran 1× this week” and a receipt that says “Rule: uses lots of CPU in the background”. The receipt compares the app’s own watts before and after when macOS reports them, and otherwise the chip’s power or the performance-core load. It may say “No measurable effect.”
Pro to run. Yes. Hedroom can suggest this template after the first check in first-run setup. It stays off until you turn it on.
Example 5: any app that burns CPU for a while
- When any background app uses more than 80% CPU for 10 min in the background
- Then Move it to efficiency cores
- Only if the same guards as above
- Cooldown 30 minutes
Why it is safe. Same as Example 4, with a longer wait (10 minutes), so a build or an export that finishes soon is left alone.
What you will see. One receipt per app moved.
Pro to run. Yes.
To tune it. The builder offers this one with 80% for 10 minutes. If it fires on work you want at full speed, such as a compiler, add that app to the never-touch list. Hedroom’s detectors treat builds and indexing as normally busy, but a rule does not use that list, so it can fire on a build or an export.
Example 6: updaters, only on battery
- When an updater runs on battery
- Then Move it to efficiency cores
- Only if you are on battery. Hedroom words this moment as “runs on battery”: the updater has been in the background for a minute and the Mac is unplugged.
- Cooldown 30 minutes
“An updater” is an app in the library’s updaters group, such as Adobe Creative Cloud.
Why it is safe. The update keeps going on the low-power cores. It is a template and ships off.
What you will see. A receipt marked “Rule:”, and the Rules row.
Pro to run. Yes.
Battery
Example 7: pause Docker Desktop when it is idle on battery
- When Docker Desktop is idle on battery
- Then Pause it
- Only if Docker Desktop has been in the background with under 5% of a core in use for 10 minutes and the Mac is unplugged
- Cooldown 30 minutes
Why it is safe. Hedroom’s library does not mark Docker Desktop as safe to pause, so this rule asks first with a notification: “Pause Docker Desktop?”, Do it or Skip. A pause lasts until you click the app, until the moment ends, or 60 minutes at most. Hedroom cannot see whether a container is in the middle of work, so the ask is the guard. Hedroom does not manage containers, so it sees Docker Desktop as one app.
What you will see. The notification, then a receipt that compares the app’s CPU before and after the pause. If a pause changes nothing measurable, the receipt says so.
Pro to run. Yes. This template is the same rule the All-day battery profile adds (1.3).
Example 8: lighten Chrome when it sits in the background on battery
- When Google Chrome is in the background, with Only on battery switched on in the Safety step
- Then Move it to efficiency cores
- Only if Chrome has been in the background for 5 minutes and the Mac is unplugged. Hedroom writes this as “When Google Chrome runs on battery → move it to efficiency cores”.
- Cooldown 30 minutes
Why it is safe. Chrome keeps running and keeps its tabs. It is put back to normal as soon as you open Chrome.
What you will see. A receipt, and a line in the builder’s estimate such as “Would have run 4× · 40 min of CPU on efficiency cores · ≈ 0.3–0.5 Wh of battery” (Example, not real data). The battery figure appears only when Hedroom has recorded watts for the app, and it is a range, not a promise.
Pro to run. Yes.
To tune it. Use the same recipe for any Electron app that sits open all day, such as Slack, Discord or VS Code, by choosing that app in step 1.
Example 9: pause an app you picked when the battery is low
- When an app you picked, with the moment “battery is below 20%”
- Then Pause it
- Only if the Mac is unplugged. The moment is true only on battery.
- Cooldown 30 minutes
This is the low-battery pause template. It starts with no app chosen, so the builder says “Pick an app first.” until you choose one in step 1.
Why it is safe. You picked the app, so Hedroom treats it as explicitly chosen. If Hedroom’s library does not mark it as safe to pause, the rule still asks first. A pause resumes when you click the app or after 60 minutes at most. Pausing stops anything the app is doing, such as an upload or a sync, until it resumes.
What you will see. A notification such as “Pause
Pro to run. Yes.
To tune it. The 20% is the template’s number. The builder lets you pick the app but shows the moment as set by the template.
Pressure
Memory pressure is how hard macOS is working to find room. The moment “my Mac is strained” is true while pressure is Strained or worse. It is global, so every app the rule names is acted on when it turns true.
Example 10: slow a named sync client when your Mac is strained
- When Dropbox, with the moment “my Mac is strained”
- Then Move it to efficiency cores
- Only if Dropbox is in the background, not on a call and not on your never-touch list
- Cooldown 30 minutes
Why it is safe. Only the app you named is touched, and only to lower its priority.
What you will see. A receipt. A move to efficiency cores lowers CPU priority and does not return memory, so on a memory problem the receipt may well say “No measurable effect”. If it does that three times in a row, Hedroom flags the rule (see below).
Pro to run. Yes.
To tune it. Do not use “Any app” with this moment unless you mean it: every background app would be moved when pressure turns Strained (Hedroom’s limits still apply).
Example 11: pause Docker Desktop when your Mac is strained
- When Docker Desktop, with the moment “my Mac is strained”
- Then Pause it
- Only if Docker Desktop is in the background and the usual guards hold
- Cooldown 30 minutes
Why it is safe. As in Example 7, Docker Desktop is not marked safe to pause, so Hedroom asks first.
What you will see. “Pause Docker Desktop?” with Do it and Skip.
Pro to run. Yes.
What the builder cannot do here. There is no “only when pressure is critical” moment in the builder. For a critical moment, Today shows ranked fixes and a notification can offer them, which is a different thing from a rule, and every one asks. A relaunch rule can only use the memory-size moment, “uses more than 3× its usual memory”.
Example 12: sleep browser tabs when your Mac is strained (1.2)
- When a browser, with the moment “my Mac is strained”
- Then Sleep tabs idle 30 min
- Only if the browser companion is linked. Tabs that play audio, are pinned or are in front are not slept.
- Cooldown 30 minutes
This is the browser-tabs-strained template. It is new in 1.2 and works once a browser is linked in Tools, so the template row says “Off. Works once a browser is linked in Tools.” Sleeping tabs is available only with “a browser” as the app.
Why it is safe. The browser’s own tab discard does the work, and the rule you created is the consent, because there is no notification button for this action.
What you will see. A receipt from the browser’s memory before and after.
Pro to run. Yes.
Never-touch protections
These are not rules. They stop rules, and every fix, from acting on an app.
Example 13: keep a tool out of every rule
- When (not a rule) you add the app to Never touch these on the Rules tab, with + Add app
- Then every rule and every fix skips it. Alerts still show.
- Cooldown not applicable
Why it is safe. It only removes things Hedroom could do. Remove the app again with the × on its chip.
What you will see. A refusal reads “You asked Hedroom to never touch
Pro to run. No. The list is free.
Example 14: protect one app from its own page
- When (not a rule) you open the app’s detail page and switch on Never touch
under Preferences for - Then the same as Example 13: “Rules and fixes skip it. Alerts still show.”
What you will see. The switch stays on until you turn it off.
Pro to run. No.
Every moment and action, in one table
These are the choices the builder offers today.
Moments (the “When it…” step)
| Moment, as the builder words it | What it means |
|---|---|
| is idle on battery | The app has been in the background and under 5% of one core for 10 minutes, and the Mac is on battery |
| is in the background | The app has not been in front for 5 minutes |
| uses more than 80% CPU for 10 min in the background | The app has averaged at least 80% of one core for 10 minutes while in the background |
| uses more than 3× its usual memory | Hedroom has an open leak finding for the app, which also needs 1 GB and about 20 minutes |
| my Mac is strained | Memory pressure is Strained or Critical |
Templates add more moments, which show as an extra choice when you start from one: “uses lots of CPU in the background” (80% for 3 minutes), “runs on battery” (an app in the background for a minute with the Mac on battery) and “battery is below 20%”.
Actions (the “Then…” step)
| Action | What it does | Undone by |
|---|---|---|
| Tell me | Changes nothing on the app | Nothing to undo |
| Move it to efficiency cores | Lowers the app’s priority so it runs on the low-power cores | The moment ending, or opening the app |
| Pause it | Freezes the app. It asks first unless the library marks the app as safe to pause | Clicking the app, the moment ending, or 60 minutes at most |
| Ask me to relaunch it | Asks you with a notification, then quits the app like ⌘Q and opens it again. Only with the “3× its usual memory” moment | Not applicable: the app is back |
| Sleep tabs idle N min | Sleeps idle browser tabs through the browser companion (1.2). Only with “a browser” | Clicking the tab |
The builder never offers Quit it. Hedroom has no rule that quits an app.
Safety toggles (step 4)
| Toggle | State |
|---|---|
| Resumes automatically, at most 60 minutes | Always on |
| Skip while playing audio or on a call | Always on |
| Only on battery | Yours to switch. It leaves the app alone while the Mac is plugged in |
Understood by the engine, not in the builder
The rule engine also understands “Low Power Mode is on”, “my Mac is warm”, “hot” and “very hot”, “it’s between two times” (quiet hours), “uses more than N MB”, “my Mac is under critical memory pressure”, and combinations with and or or. The builder does not offer them, so you cannot make a quiet-hours rule or a critical-only rule today. Hedroom’s library can ship a template that uses one, and it would appear under Start from a template, still off until you turn it on.
What rules can never do
- Delete files. A rule has no way to delete, move to the Trash or remove anything. No rule, schedule or notification can start a cleanup.
- Touch Apple’s processes. Anything signed by Apple or in a system folder is explain-only. The one exception, apps like Xcode, can be relaunched or quit only when you click, never by a rule.
- Act on the app in front of you, or on an app playing audio, using the microphone or on a call.
- Quit an app without that app’s consent. Relaunch asks first, quitting is not offered in rules, and force quit is never from a rule.
- Act on an app on your never-touch list.
- Change settings such as Low Power Mode or fans.
How a rule stops itself
- A moved or paused app is put back when the moment ends, or when you open the app.
- A pause ends after 60 minutes at most, even if Hedroom is quit or crashes.
- After three receipts in a row with no measurable effect, Hedroom flags the rule. The Rules tab shows a “No effect” badge and the tile “Rules that aren’t helping”, and a notification says “A rule isn’t helping” with Turn rule off and Keep it. Hedroom does not switch the rule off for you. You decide.
- The limits stop a loop: one action per app every 5 minutes, 6 per hour per rule, 20 per hour in all.
- You can have at most 50 rules.
- Rules stop while monitoring is paused, and when Pro is not active.
- When you switch a rule off, whatever it moved or paused is put back on the next check.
How to try a rule once
In the full builder, Try it once now runs the action once on the app you chose, through the same safety checks as a click. The app must be open, and a rule that only tells you has nothing to try. The result says “Done. The receipt shows up in Receipts in about 5 to 15 minutes.” or why Hedroom said no. Use it to see a real receipt before you save a rule.