@whynothugo/pi-auto-theme
v1.0.1
Published
Pi extension to automatically switch theme based on terminal dark/light mode.
Readme
pi-auto-theme
pi-coding-agent extension to automatically switch theme based on terminal background color.
Installation
Install with:
pi install https://git.sr.ht/~whynothugo/pi-auto-themeOverview
- On session start, queries the terminal's background color using OSC 11
- Calculates the luminance of the background color
- Switches to
lighttheme for light backgrounds,darkfor 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.
