aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard.lua
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-17 09:16:58 +0200
committerDanilo M. <danix@danix.xyz>2026-09-17 09:16:58 +0200
commitaf64aed9b49c727d6b4050f3534115cead314f1d (patch)
treef085ad2769bd1583e85b941c43dd13d362f0b89c /dashboard.lua
parent2bdb74a1cbd4b33216d94713de1f1b3c81f631e2 (diff)
downloadconky-theme-udt-af64aed9b49c727d6b4050f3534115cead314f1d.tar.gz
conky-theme-udt-af64aed9b49c727d6b4050f3534115cead314f1d.zip
fix: size the weather card to its content
The first draft placed every band at a fixed pixel offset and let the arc absorb whatever height was left. In a 1x2 cell on this monitor that is 794px of arc: a cathedral arch under a fifth of a card of content, nothing like the mockup it was shaped after. Three changes, all visible in an offscreen render of the real widget: - Type sizes and band offsets scale with the rect, within clamps, so the proportions hold on the 1920 monitor as well as this one. - The arc gets a bounded band that follows the stats instead of being pinned to the bottom, so no dead strip opens between them. - The layout gives the widget a 1x1 cell. Its content is about 350px tall and a full-height cell cannot be filled without inventing data. Found before restarting conky by loading conky's own cairo bindings standalone and rendering the widget to a PNG, which is a far tighter loop than install, restart, switch workspace, screenshot. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'dashboard.lua')
-rw-r--r--dashboard.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/dashboard.lua b/dashboard.lua
index dfd19ff..f5e74f3 100644
--- a/dashboard.lua
+++ b/dashboard.lua
@@ -20,7 +20,10 @@ local COLS, ROWS = 4, 2
local layout = {
{ widget = 'clock', col = 1, row = 1, w = 1, h = 2 },
- { widget = 'weather', col = 2, row = 1, w = 1, h = 2 },
+ -- 1x1, not 1x2: the card's content is about 350px tall, so a full-height
+ -- cell left a dead band down its middle. A single-row cell is as tall as
+ -- what it holds.
+ { widget = 'weather', col = 2, row = 1, w = 1, h = 1 },
}
-- ==========================================================================