# pi-auto-theme

pi-coding-agent extension to automatically switch theme based on terminal
background color.

## Installation

Install with:

```sh
pi install https://git.sr.ht/~whynothugo/pi-auto-theme
```

## Overview

- On session start, queries the terminal's background color using OSC 11
- Calculates the luminance of the background color
- Switches to `light` theme for light backgrounds, `dark` for dark backgrounds
- Listens for future background color changes.

Requires a terminal that supports OSC 11 query/response for background color

## LICENCE

Licensed under the ISC licence. See LICENCE for details.
