Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTEXT.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Sync color from an [Omarchy](https://omarchy.org) desktop environment to a [WLED

**Sentinel** — a string fingerprint that changes when the color source’s backing files change (e.g. `theme.name` / `colors.toml` mtimes, wallpaper symlink target). Exposed as `source.Source.Sentinel()` for the poll fallback and implemented per source type.

**Poll fallback** — when `fsnotify` cannot initialise a watcher (unusual on Linux), the daemon runs a 1-second loop: if `Sentinel()` differs from the previous value, it debounces and pushes (same path as a filesystem trigger).
**Poll fallback** — when `fsnotify` cannot initialize a watcher (unusual on Linux), the daemon runs a 1-second loop: if `Sentinel()` differs from the previous value, it debounces and pushes (same path as a filesystem trigger).

**Seam** — the `source.Source` interface: `Read()`, `WatchDir()`, `IsTrigger()`, `Sentinel()`. Adding a new source means implementing this interface only.

Expand Down
2 changes: 1 addition & 1 deletion internal/color/color.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func NamedHexFromColorsToml(tomlKey, colorsTomlPath string) ([3]uint8, error) {
}

// ScaleSaturation converts to HSV, multiplies S by saturationMultiplier, converts back to sRGB.
// multiplier 1.0 leaves hue/value; 0.0 yields grey; >1.0 boosts vividness (S capped at 1).
// multiplier 1.0 leaves hue/value; 0.0 yields gray; >1.0 boosts vividness (S capped at 1).
func ScaleSaturation(rgb [3]uint8, saturationMultiplier float64) [3]uint8 {
rN := float64(rgb[0]) / 255
gN := float64(rgb[1]) / 255
Expand Down
Loading