Skip to content
Edith

Docs

Command reference

ed lid-awake restore-on-quit

Chooses whether the menu bar app restores normal lid-close sleep when its Lid Awake engine shuts down.

Output
ed lid-awake restore-on-quit <enabled> [--yes] [--json]
Name Type / values Default What it does
<enabled> boolean required Turn restoration on or off.
--yes flag off Apply disabling restoration after previewing it.
--json flag off Emit the preview or stored boolean as JSON.

Boolean spellings are case-insensitive: true, yes, on, 1 and enabled turn it on; false, no, off, 0 and disabled turn it off. Other text exits 1 without changing the stored value.

Output
ed lid-awake restore-on-quit trueed lid-awake restore-on-quit offed lid-awake restore-on-quit false --yes --json

Turning restoration on applies immediately. Turning it off without --yes previews the safety impact and does not write the preference. Its JSON preview uses the same stable fields as lid-awake on, with restoreOnQuit: false and session: null. Pass --yes to store the change.

Applied human output is restore on quit = on or restore on quit = off. JSON contains only the stored boolean:

JSON
{  "restoreOnQuit": true}

This is a preference write, and a running Edith picks it up at once. It does not change the current system state. Closing the window with ed app quit --yes leaves Edith and Lid Awake running, so it does not trigger this policy. Quitting Edith completely, or removing Lid Awake, does.

Where to go next