— archive 001 / macOS 14+ 24 — 00

caffeinate & disablesleep

keep your Mac awake with the lid closed.
no external display needed.

free · open source · native · lightweight

↓ download .dmg github
the popover, opened from the menu bar — an 8 hour session running

fig. 01 — an 8h session, and the commands underneath

which one, when

awake session
lid open
awake until the timer ends.
closing the lid sleeps it.
caffeinate
stay awake, lid closed
lid shut
never sleeps, even shut.
screen still sleeps and locks after inactivity.
disablesleep
both
lid might close
awake until you turn it off.
closing the lid changes nothing.
caffeinate + disablesleep
idle screen on screen off, Mac on

fig. 02, when to use which

the lid setting needs root. the first password prompt installs one sudoers rule covering two exact pmset commands, so later toggles are silent. one line in the terminal takes it back.
read what it grants
↓  download .dmg signed & notarized · 2.2 MB · free

source code