diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-17 09:34:13 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-17 09:34:13 +0200 |
| commit | 5a4c0c0de6cb5ed544773a9aa056ac2b3e5b486b (patch) | |
| tree | fcbb07f6de09a6d297e8ac78410fddd59b6544b0 /widgets/system.lua | |
| parent | b51d1efa913933cb272b7c1906340981f00010c8 (diff) | |
| download | conky-theme-udt-5a4c0c0de6cb5ed544773a9aa056ac2b3e5b486b.tar.gz conky-theme-udt-5a4c0c0de6cb5ed544773a9aa056ac2b3e5b486b.zip | |
feat: move to an 8x6 grid, and let the weather card fit any cell height
The grid was 4x2, which made every placement decision a coarse one. 8x6
gives 299x157 cells, so a card can be sized in something closer to the
increments the layout actually wants. Nothing in rect_for needed
changing: it derives cell size from COLS and ROWS, so this is a
two-number edit.
Note that ROWS has to cover the tallest row in use. A widget placed on
row 3 of a two-row grid is computed at y=1068 on a 1080px screen and
draws off the bottom, silently.
The arc band no longer has a minimum height. It had one, and in a cell
40px shorter than the content wanted, the minimum won and pulled the
curve up through the stat rows, drawing the sunrise time across the word
WIND. It now takes what is genuinely left and is skipped below the
height where it could be read, so the same widget composes in a 2x2 or a
2x3 cell without overlapping anything. Checked by rendering the widget
offscreen at 2x1, 2x2 and 2x3 before restarting conky.
Layout is now a 1x3 clock with a 2x3 weather card beneath it.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'widgets/system.lua')
0 files changed, 0 insertions, 0 deletions
