I built a theme selector for Ghostty that learns which color schemes you prefer in different contexts.
It reads your Mac's ambient light sensor and considers:
- Time of day (morning, afternoon, evening, night)
- Ambient light level (dim, office, bright, daylight)
- System dark/light mode
- Weather conditions
- Power source (AC vs battery)
A background daemon watches which themes you use and builds a Bayesian model of your preferences. Over time it learns things like "in dim evening light, they prefer high-contrast dark themes with muted colors."
Once it has enough data, it can generate a custom theme optimized for your current context.
ghostty-ambient # Interactive picker with recommendations
ghostty-ambient --ideal # Generate optimal theme for current context
ghostty-ambient --stats # See what it's learned about you
Install: uv tool install ghostty-ambient or pip install ghostty-ambient
GitHub: https://github.com/gezibash/ghostty-ambient
Built for Ghostty (https://ghostty.org) but the Bayesian preference learning could apply to any theming system.