All apps/caffeinate

caffeinate

caffeinate

Prevent the system from sleeping on behalf of a utility.

Runs as caffeinate|macOS, Linux, Windows

Command form

ai-draft · 2 tasks · 7 fields

Create power assertions for a duration or until a process exits. Running a utility under caffeinate is outside this form.

Opens the form; the finished command lands at your prompt, unrun
otty gui caffeinate
Prevent sleepExample values, fixed in this page — nothing here reaches a terminal
Basic
Prevent display sleep
-d
Timeout (seconds)*
integer
TasksEach one presets the form for one job
Keep display awake for a time
displaytimeout
Keep awake until a process exits
idlewait_pid
ParametersOnly these flags are editable in the form
Prevent display sleep
boolean
-d
Prevent idle system sleep
boolean
-i
Prevent disk idle sleep
boolean
-m
Prevent system sleep (AC power)
Valid only while the system is running on AC power.
boolean
-s
Declare user active
Turns the display on if it is off. Without a timeout the assertion lasts 5 seconds.
boolean
-u
Timeout (seconds)
integer
-t
Wait for process (PID)
Release the assertion when this process exits.
integer
-w
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed caffeinate against its version. A form that does not match your version is not offered.