Ambient light-aware Ghostty theme selector using Bayesian preference learning. Dynamically adjusts terminal theme based on environmental brightness and warmth via on-device ALS sensor (macOS) or periodic sampling. Uses a Bayesian HMM to learn user preferences over time. v0.9.0 requires Python >=3.12 and relies on a compiled sensor binary (macOS). The CLI provides a picker, daemon mode, and manual set commands.
pip install ghostty-ambientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: create an AmbientPicker, get lux, and get a theme recommendation.
Upgrade Python to 3.12 or later.
Ensure the binary compiles (requires clang or the built binary). Run 'ghostty-ambient daemon' once to trigger compilation. Alternatively, set sensor backend explicitly.
Use AmbientPicker.get_current_lux() which internally uses the sensor backend with fallback.
Ensure the state directory exists and is writable, or set a custom state_dir.
No dependency data recorded yet.