feat: Enable and configure figment mode via new CLI flags, update documentation, and improve Cairo library detection on macOS.

This commit is contained in:
2026-03-19 13:11:24 -07:00
parent 4bd4fe5aac
commit f40651b34d
5 changed files with 40 additions and 18 deletions

View File

@@ -55,14 +55,16 @@ def stream(items, ntfy_poller, mic_monitor, display: Display | None = None):
frame_number = 0
# Figment overlay (optional — requires cairosvg)
try:
from effects_plugins.figment import FigmentEffect
from engine.effects.registry import get_registry
figment = None
if config.FIGMENT:
try:
from effects_plugins.figment import FigmentEffect
_fg_plugin = get_registry().get("figment")
figment = _fg_plugin if isinstance(_fg_plugin, FigmentEffect) else None
except ImportError:
figment = None
figment = FigmentEffect()
figment.config.enabled = True
figment.config.params["interval_secs"] = config.FIGMENT_INTERVAL
except (ImportError, OSError):
pass
while True:
if queued >= config.HEADLINE_LIMIT and not active: