Goblin User Guide Search⌘K Download
Keep Awake

Keep Awake settings

New in Goblin 1.1

Every control in Settings › Keep Awake, plus the Keep Awake icon in the menu bar and the separate Keep Awake menu bar item with its own menu.

SettingsKeep Awake holds every Keep Awake option, from what a new session starts with to its icon in your menu bar. This page goes through it top to bottom. For starting and ending sessions, see Keep Awake basics.

Changes to the session options apply to the next session. A session that's running keeps the options it started with. Changes take effect as soon as you make them; there's no Save button.

Open the Keep Awake settings#

Pick whichever is closest:

  • Right-click Goblin's menu bar item, choose Settings… (or press ⌘,), and click Keep Awake in the sidebar.
  • In Goblin's window, open the Power tab (⌘7), click Keep Awake at the top, and click Keep Awake Settings… under the card.
  • In the separate Keep Awake menu bar item, choose Preferences….

If Settings is already open on another pane, the last two switch it to Keep Awake.

New Sessions#

The top of Settings › Keep Awake, showing the New Sessions switches with their icons and notes, and the Start Menu section with the Minutes and Hours chips
Settings › Keep Awake starts with what a new session does and the lengths the Start menu offers.

What every session starts with, unless a trigger sets its own. Each switch has an icon, lit while it's on, and a line saying what it does.

SettingWhat it doesDefault
Keep the screen onNew sessions keep the display awake too. Off lets the screen sleep while the Mac stays awake.On
Let the screen saver startYour screen saver still starts while the screen is kept on. It only matters while the screen is kept on, so it's greyed out otherwise.Off
Stay awake with the lid closedNew sessions use closed-lid mode. Asks for your password when a session starts, unless Goblin's helper is approved.Off
Move the pointer when idleNew sessions nudge the pointer when you're idle, so chat apps don't show you as away.Off
Keep chosen drives awakeNew sessions keep the drives you pick under Drive Alive spinning.Off

The Screen on, Closed lid and Jiggle buttons on the Keep Awake card change the same settings. Each option is explained in Screen, closed lid, mouse jiggle and Drive Alive.

Start Menu#

The lengths offered under Start on the card and in the separate menu bar item.

Change the lengths in the Start menu#

  1. Open SettingsKeep Awake and find the Start Menu section.
  2. To take a length away, click the × on its chip in Minutes or Hours.
  3. To add one, click + at the end of the row, type a whole number in the field that appears, and click Add (or press Return).

The Start menu shows the new list straight away.

SettingWhat it doesDefault
MinutesThe choices under StartMinutes, 1 to 720 minutes.5, 10, 15, 30, 45
HoursThe choices under StartHours, 1 to 72 hours.1, 2, 3, 4, 5, 6, 8, 12
Start a session when Goblin opensStarts a session each time Goblin opens, for the Length you pick.Off

Each length is a chip. Click × on a chip to take it away, or + to add one: type a whole number in the field that appears and click Add or press Return. Goblin keeps the chips in order and ignores a length that's already there. Each list holds up to 12, and the last one can't be removed, so the menu is never empty.

Start Keep Awake every time Goblin opens#

  1. In SettingsKeep AwakeStart Menu, switch on Start a session when Goblin opens.
  2. In the Length menu that appears, choose Indefinitely or one of your minute and hour choices.

Combined with opening Goblin at login (see Permissions), this keeps the Mac awake from the moment you log in.

Closed Lid, Mouse Jiggle and Drive Alive#

These three sections come next, straight after the switches they explain. They're described on their own page:

Battery and Heat#

A session ends by itself when any of these happens.

Stop Keep Awake when the battery is low#

  1. Open SettingsKeep Awake and find the Battery and Heat section.
  2. Switch on End when the battery falls below if it's off, and set the level with the stepper (5% to 90%).
  3. Optionally switch on End when the Mac is unplugged or End when Low Power Mode turns on.
SettingWhat it doesDefault
End when the battery falls belowOn battery, ends the session when the charge reaches this level. 5% to 90%, in steps of 5.On, 10%
End when the Mac is unpluggedEnds the session as soon as the Mac runs on battery, and stops one starting while it does.Off
End when Low Power Mode turns onEnds the session when Low Power Mode turns on, and stops one starting while it's on.Off
End when the Mac gets too hotEnds the session when macOS reports the Mac is seriously hot.On

The battery settings do nothing on a Mac without a battery. Closed-lid sessions also end at their own, higher battery level and always end when the Mac is critically hot; see Closed-lid mode.

Screen#

SettingWhat it doesDefault
Lock the screen when the Mac is idleDuring a session, locks the screen after this many minutes without keyboard or mouse. 1 to 240 minutes.Off (10 min when switched on)
Let the screen sleep while it is lockedWhile the screen is locked during a session, the display may sleep.Off

While Work Is Running#

These decide what counts for a While Work Is Running session.

SettingWhat it doesDefault
Programs that count while they runBuilds, encodes and copies: while any of these runs, the Mac stays awake.See below
Programs that count only while busyAssistants and runtimes that sit open all day: they count only while they use at least 2% of a core, on average over the last minute.See below
Count dev serversDev servers from the Projects tab count while they're in use.On
Keep going after the last one endsHow long the session waits, after the last program stops, before ending. 0 to 30 minutes.2 min
Reset the ListsPuts both program lists back to the defaults. Greyed out when they already are.–

Choose which programs count as work#

  1. Open SettingsKeep Awake and find the While Work Is Running section.
  2. In Programs that count while they run or Programs that count only while busy, click × on a chip to take a program away.
  3. To add one, click + (Add a program), type its name and click Add.
  4. To go back to the defaults, click Reset the Lists.

Each program is a chip. You can add several at once, separated by commas. Names are the program's own name as it runs, like claude or cargo, not the app's name, and capitals don't matter. Time Machine backups always count.

By default, these count whenever they run: xcodebuild, swift-build, cargo, rustc, go, make, ninja, cmake, gradle, mvn, bazel, ffmpeg, handbrakecli, rsync, scp, brew and softwareupdate.

These count only while busy: the coding agents and model servers claude, codex, gemini, aider, cursor-agent, goose, ollama and llama-server, and node, python, python3, ruby, java, bun, deno, npm, pnpm, yarn and docker. They often stay open between jobs, so they only count while they're doing something. A Claude session at work uses roughly 3% to 12% of a core; an open but idle one stays under 1%, so it doesn't keep the Mac awake.

Note: Goblin saves both lists with your other Keep Awake settings. If you tried Keep Awake in a pre-release build of 1.1 and changed any of its settings, you still have that build's lists, where claude and the other agents count whenever they run. Click Reset the Lists to switch to the lists above (this also removes any names you added).

While a File Is Downloading#

Watch shows the folder that While a File Is Downloading sessions look in, ~/Downloads unless you change it. Goblin only looks at files directly in that folder, not in folders inside it. Choose File… in the Start menus opens its file window in this folder too.

Watch a different folder for downloads#

  1. Open SettingsKeep Awake and find the While a File Is Downloading section.
  2. Click Choose….
  3. Pick the folder in the file window and confirm.

Watch now shows that folder. To go back, click Use Downloads.

Triggers#

The Triggers section comes next. It has a page of its own: Keep Awake triggers.

Notifications#

Turn notifications on or off#

  1. Open SettingsKeep Awake and find the Notifications section.
  2. Switch Tell me when a session starts and Tell me when a session ends the way you like.
  3. For a reminder during long sessions, switch on Remind me while a session runs and set how often with the stepper.
  4. To add a sound, choose one in Sound, and where it plays in Play it on.
SettingWhat it doesDefault
Tell me when a session startsA "Keep Awake is on" notification when any session starts.Off
Tell me when a session endsA "Keep Awake ended" notification, with the reason, when a session ends by itself.On
Remind me while a session runsA "Keep Awake is still on" reminder at this interval, with what the session is doing and the time left. 5 to 480 minutes.Off (60 min when switched on)
SoundA sound played with each of these notifications. Choosing one plays it.None
Play it onWhich output plays that sound: System default or any connected output device, such as particular speakers or headphones. Choosing one plays the sound on it. Greyed out while Sound is None.System default

Tell me when a session ends covers sessions that end on their own: time up, the app quitting, a download or work finishing, or a battery or heat rule. You don't get one when you end a session yourself, start another, or quit Goblin, or when a trigger's session ends because the trigger stopped matching. The sounds are the ones built into macOS. If the device chosen in Play it on isn't connected, the menu shows "Not connected (using the default)" and the sound plays on the default output. Notifications need Goblin to be allowed to send them; see Permissions.

Show the time left in the menu bar#

  1. Open SettingsKeep Awake and find the Menu Bar section.
  2. Make sure Show the icon in the menu bar while a session runs is on.
  3. Switch on Show a time beside it.
  4. In The time shows, choose The time left or When it ends.

Start a session with an end time: the time appears beside the icon at the start of Goblin's menu bar item.

Change the menu bar icon#

In the Menu Bar section, open the Icon menu and choose one. The two small pictures beside it show how it looks Running and Off.

Add a separate menu bar item#

  1. Open SettingsKeep Awake and find the Menu Bar section.
  2. Switch on A separate menu bar item. A second icon appears in the menu bar.
  3. Optionally switch on Dim the icon when no session runs.
  4. Click the new icon to open its menu.

To remove it, switch A separate menu bar item off.

SettingWhat it doesDefault
IconThe symbol Keep Awake uses in the menu bar: Cup, Mug, Pill, Eye, Bolt, Sun, Moon or Light bulb. Beside the menu, the chosen icon shows both ways: filled, captioned Running, as it looks while a session runs, and outlined, captioned Off.Cup
Show the icon in the menu bar while a session runsPuts the filled icon at the start of Goblin's menu bar item during a session.On
Show a time beside itAdds a time next to the icon, for sessions with an end time. Greyed out while the icon is off.Off
The time showsThe time left, or When it ends as a clock time. Appears while both switches above are on.The time left
ClockSame as the Mac, 12-hour (6:30 PM) or 24-hour (18:30).Same as the Mac
A separate menu bar itemIts own icon, with a menu to start, extend and end sessions.Off
Dim the icon when no session runsFades the separate item while Keep Awake is off. Appears while the separate item is on.Off
In Goblin's right-click menuA Keep Awake section in the menu a right-click on Goblin's item opens, with the same session controls as the separate item's menu.On

The time left reads like "45m" or "1h 12m", rounded up to the whole minute, and "<1m" in the last minute. It updates every 15 seconds. When it ends reads like "6:30 PM", with "tomorrow" or the weekday in front when the session ends on another day. When no session runs, Goblin's menu bar item looks exactly as it did.

Clock applies to every clock time Keep Awake shows, not just the menu bar: the card, the Until a Specific Time picker, notifications, what goblin awake prints and what AI assistants are told.

In Goblin's right-click menu#

Right-click Goblin's menu bar item and a Keep Awake section follows the capture items. It has the same controls as the separate item's menu below: the session line, End Current Session and Extend › while a session runs, then Start New Session ›, Quick Preferences › and Triggers ›. Goblin's own Settings… and Quit Goblin sit at the bottom of that menu, so the section leaves out Preferences, Open Goblin and Quit. Turn off In Goblin's right-click menu to hide it.

The separate menu bar item#

Diagram of Keep Awake Quick Preferences with display sleep, screen saver, closed-display mode, mouse jiggle and drive-alive commands
Menu reference: Keep Awake’s Quick Preferences submenu only.

The separate item shows the icon you chose: an outline when Keep Awake is off (faded, with Dim the icon when no session runs on), filled while a session runs. With Show a time beside it on, the time left or the end time appears next to it, as set in The time shows. Hover over it to see what the session is doing. Click it, with either button, to open its menu:

  • While a session runs, the top line says what it's doing, such as "Session active: 1h 12m remaining", then End Current Session and Extend › (+ 5 minutes to + 2 hours).
  • Start New Session › has the same choices as the card's Start menu, with app icons beside the apps and Choose File… at the bottom of While a File Is Downloading. Until a Specific Time… opens a small Keep Awake Until window with a time field; a time that has already passed today means tomorrow.
  • Quick Preferences › changes the defaults for new sessions: Allow Display Sleep, Allow Screen Saver, Closed-Display Mode, Mouse Jiggle and Drive Alive. A tick shows which are on.
  • Triggers › Use Triggers turns all triggers on or off; Edit Triggers… opens Keep Awake settings.
  • Preferences… opens Keep Awake settings, Open Goblin opens Goblin's window on the Power tab, and Quit Goblin quits.

In this menu, While a File Is Downloading usually offers Any Download and Choose File… only; use Choose File… to wait for one particular file.

AI Assistants#

To let an assistant start and stop sessions, open SettingsKeep Awake, find the AI Assistants section, and switch on Let AI assistants start and stop sessions. The assistant also has to be connected first; see below.

SettingWhat it doesDefault
Let AI assistants start and stop sessionsLets assistants connected through Goblin's MCP server start and end Keep Awake sessions.Off

Assistants connected to Goblin can always ask whether a session is running. They can only start or end one with this switch on. Connecting an assistant at all needs Let AI assistants ask about this Mac under SettingsProjectsAI Assistants; see AI assistants. An assistant can't turn on closed-lid mode.

History#

The last 20 sessions, newest first. Each shows how the session was set to last, such as "For 2 hours", "Indefinitely" or "Trigger: At my desk", then when it started, how long it ran, and why it ended: "Ended by you", "Replaced by another session", "Goblin quit", or the reason it ended by itself, such as "Ended: the app quit". Before your first session it says "No sessions yet." The Keep Awake card in Goblin's window (PowerKeep Awake) shows the three most recent.

Syncing between Macs#

To sync, open Settings › iCloud Sync and turn on Keep Awake. Do the same on each Mac. These settings and your triggers then travel to your other Macs. The watched downloads folder, the Drive Alive drives, the Let AI assistants start and stop sessions switch and the Play it on device stay on each Mac.

Keep Awake can also be controlled from the goblin command, goblin:// links, AppleScript and Shortcuts.