# ed lid-awake battery

> Sets the low-battery percentage below which an active Lid Awake session pauses.

- Canonical URL: https://getedith.pro/docs/cli/lid-awake/battery
- Updated: 2026-12-02

Sets the low-battery percentage below which an active Lid Awake session pauses.

```
ed lid-awake battery <threshold> [--json]
```

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `<threshold>` | integer `1` through `100`, or `off`, `none`, `disabled` | required | Set the pause threshold, or store 0 to disable the policy. |
| `--json` | flag | off | Emit the stored threshold as JSON. |

The off spellings are case-insensitive. A number outside 1 through 100, a
fraction or other text exits 1 without changing the stored value.

```
ed lid-awake battery 20
ed lid-awake battery off
ed lid-awake battery disabled --json
```

Human output is `battery auto-pause = 20%` or `battery auto-pause = off`. JSON
contains only the stored integer:

```json
{
  "batteryThreshold": 20
}
```

This is a preference write, and a running Edith picks it up at once. It does not start or stop Lid Awake by
itself. While running on battery, the engine pauses below the threshold and
retains `requestedActive: true`; after AC power is connected and the battery is
at least five percentage points above the threshold, it resumes. Setting the
threshold to off resumes a session that is currently battery-paused.

## Where to go next

- [`ed lid-awake`](https://getedith.pro/docs/cli/lid-awake), the rest of this group
- [`ed lid-awake status`](https://getedith.pro/docs/cli/lid-awake/status), see the current pause state
- [`ed config get lidAwakeBatteryThreshold`](https://getedith.pro/docs/cli/config/get), read the same preference
- [All `ed` commands](https://getedith.pro/docs/cli)

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
