From 9875bfe6b38ec7ace3745ae9540e1f8655d2a116 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 17 Sep 2026 10:13:58 +0200 Subject: feat: 16x12 grid, clock at 1.5 columns A finer grid to place cards in smaller increments. The clock takes a fractional 1.5-column span, which rect_for supports because it is plain arithmetic with no integer assumption; note that a span of w covers w cells plus the w-1 gaps between them, so 1.5 is slightly wider than one and a half bare cells. Co-Authored-By: Claude Opus 5 --- dashboard.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dashboard.lua b/dashboard.lua index f5c068e..2d1666f 100644 --- a/dashboard.lua +++ b/dashboard.lua @@ -16,12 +16,12 @@ local card = require 'lib.card' -- Order and position are yours: edit this table, nothing else. -- col/row are grid cells, w/h span cells. Cell size is derived from the -- surface, so the same table works on a 2560x1080 and a 1920x1080 screen. -local COLS, ROWS = 8, 6 +local COLS, ROWS = 16, 12 local layout = { - { widget = 'clock', col = 1, row = 1, w = 1, h = 3 }, + { widget = 'clock', col = 1, row = 1, w = 1.5, h = 5 }, -- Under the clock, same column. - { widget = 'weather', col = 1, row = 4, w = 2, h = 3 }, + { widget = 'weather', col = 1, row = 6, w = 3, h = 5 }, } -- ========================================================================== -- cgit v1.2.3