From e54d9405dd818cd3ee7c203b8ec1d21713470904 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sun, 18 Oct 2026 10:40:18 +0200 Subject: feat: the cache and slackware cards move to quickshell Both cards are now drawn by quickshell, so the conky copies go: the two widgets, their samplers and texeci lines, their fixtures and icons, and du_parse with human_bytes, which only the cache card used. kv_parse stays for breaktimer; its test now runs on an inline string. README gains a Samplers section listing what conky still schedules, and DESIGN.md's examples point at the cards that remain. Their slots in the layout are left open. Co-Authored-By: Claude Opus 5.5 --- DESIGN.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'DESIGN.md') diff --git a/DESIGN.md b/DESIGN.md index cd7a8a5..604e7cb 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -20,7 +20,7 @@ bottom: - **Variable band.** One element may absorb the height left over, chosen per card: the daylight arc in `weather`. Or the type itself fills the cell. -Failure states keep the chrome and draw a notice in it ("no cache data", `--` +Failure states keep the chrome and draw a notice in it ("no calendar data", `--` for a missing sensor). An empty cell is indistinguishable from a crashed widget, so a card never draws nothing. A missing sensor is `--`, never `0`: zero is a legitimate reading. @@ -38,7 +38,7 @@ Everything else exists to keep those two readable at any cell size. of a width fit and a height budget. `card.fit_unit` measures candidate rows and returns the largest base size that fits the width, and a row that would collide pulls the size down. Bigger cell, bigger type instead of empty space. - The `cache` card does this; a card that cannot afford the + The `breaktimer` card does this; a card that cannot afford the measuring pass may key off width with a clamped factor. - **Roles.** `FONT_MONO` for labels and row text, `FONT_HEAVY` for the big number, `FONT_UI` for prose (a condition description, a notice). Sizes within @@ -52,11 +52,11 @@ One language for every measured quantity, so state is read rather than decoded: | State | Role | Example | |---|---|---| -| fine | `ok` | a fresh cache, a current changelog | -| busy | `warning` | a cache past 25% | -| hot / full | `critical` | a cache past 75%, a stale changelog | +| fine | `ok` | breaktimer working | +| busy | `warning` | breaktimer paused | +| hot / full | `critical` | a quantity past its upper threshold | -- Proportions (cache usage) use **25% / 75%**. +- Proportions use **25% / 75%**. - `warning` is the palette's middle role. The board should show all three states in normal use, or the language is not earning its place. - The big value's colour follows what it is: `body` for a plain number, the -- cgit v1.2.3