> ## Documentation Index
> Fetch the complete documentation index at: https://docs.otter-shell.org/llms.txt
> Use this file to discover all available pages before exploring further.

# otter-calc

> Evaluate math expressions from the terminal or launcher. Pass --copy to send the result to clipboard via otter-copy.

otter-calc evaluates math expressions from the command line. Type an expression, get the result. Pass `--copy` to put it on the clipboard.

## Usage

Pass your expression as a single argument or as multiple arguments. otter-calc joins them before evaluating.

```bash theme={null}
otter-calc '2 + 3 * 4'          # evaluates to 14
otter-calc 2 + 3 '* 4'          # arguments are joined
otter-calc --copy '(2 + 3) * 4' # evaluate and copy result
```

## Configuration

otter-calc reads `~/.config/otter-shell/otter-calc.conf`.

```conf theme={null}
copy_result = false
```

* `copy_result`: `true` always copies the result without passing `--copy`

<Note>
  `--copy` uses the shared Otter clipboard helper (`otter-copy`). In packaged
  installs, `wl-copy` is shadowed to `otter-copy` so clipboard integration works
  transparently.
</Note>
