aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard.lua
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-17 09:11:56 +0200
committerDanilo M. <danix@danix.xyz>2026-09-17 09:11:56 +0200
commit2bdb74a1cbd4b33216d94713de1f1b3c81f631e2 (patch)
treeaae8b839b73110bada9274e4ee12e58e15c2964a /dashboard.lua
parent04542528f018678b64e0003eab078858c31f196e (diff)
downloadconky-theme-udt-2bdb74a1cbd4b33216d94713de1f1b3c81f631e2.tar.gz
conky-theme-udt-2bdb74a1cbd4b33216d94713de1f1b3c81f631e2.zip
feat: add the weather card
Draws current conditions plus a sunrise-to-sunset arc in widgets/weather.lua, placed at col 2 in dashboard.lua's layout. Schedules the periodic fetch via execi in conky.conf.in, tying refresh to conky's own lifecycle. The no-data env-file probe now closes its handle explicitly: the branch reruns every draw until a fetch succeeds, so an unclosed io.open there would leak one handle per frame. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'dashboard.lua')
-rw-r--r--dashboard.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/dashboard.lua b/dashboard.lua
index af6e51c..dfd19ff 100644
--- a/dashboard.lua
+++ b/dashboard.lua
@@ -20,6 +20,7 @@ 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 },
}
-- ==========================================================================