diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-18 14:45:36 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-18 14:45:36 +0200 |
| commit | 7ea2dab2ac0c4e3db4dfde1b72f8c58b4cdaeabd (patch) | |
| tree | ffc9f888de2ae389d19f12d396cd522988ca899f | |
| parent | b4451efb0f957d3cd3d9750f903899d8a87e15f3 (diff) | |
| download | conky-theme-udt-7ea2dab2ac0c4e3db4dfde1b72f8c58b4cdaeabd.tar.gz conky-theme-udt-7ea2dab2ac0c4e3db4dfde1b72f8c58b4cdaeabd.zip | |
chore: render.lua takes fractional spans; reflow a fetcher comment
The final print used %d and raised on fractional spans; header now cites a card that exists.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
| -rwxr-xr-x | bin/weather-fetch.sh | 5 | ||||
| -rw-r--r-- | test/render.lua | 10 |
2 files changed, 7 insertions, 8 deletions
diff --git a/bin/weather-fetch.sh b/bin/weather-fetch.sh index e9f205b..02ae644 100755 --- a/bin/weather-fetch.sh +++ b/bin/weather-fetch.sh @@ -31,9 +31,8 @@ fi UNITS="${UNITS:-metric}" # Location data shares a directory with UDT's other generated state, all of -# which is 600. Set the mode before anything lands, the -# directory included, so no file is briefly -# world-readable. +# which is 600. Set the mode before anything lands, the directory included, +# so no file is briefly world-readable. umask 077 mkdir -p "$CACHE_DIR" diff --git a/test/render.lua b/test/render.lua index 3ed5f7e..cc88317 100644 --- a/test/render.lua +++ b/test/render.lua @@ -3,13 +3,13 @@ -- Conky ships its Cairo bindings as a loadable module, so a widget's draw() -- can be called against an image surface from plain Lua. That turns -- edit-install-restart-toggle-screenshot into one command, which is how the --- weather card's proportions were fixed. +-- cards' proportions were fixed. -- --- lua test/render.lua weather 16 12 3 5 /tmp/w.png +-- lua test/render.lua now 16 12 3 5 /tmp/w.png -- -- Caveat: this crops to the single card. It says nothing about how the card --- looks NEXT to its neighbours, which is a real failure mode (the weather --- card's type once looked fine here and tiny beside the clock). Check the +-- looks NEXT to its neighbours, which is a real failure mode (a card's +-- type once looked fine here and tiny beside the clock). Check the -- live dashboard before believing anything about relative size. package.cpath = '/usr/lib64/conky/lib?.so;' .. package.cpath @@ -89,4 +89,4 @@ end cairo_destroy(cr) cairo_surface_write_to_png(surf, out) cairo_surface_destroy(surf) -print(string.format('%s at %dx%d on a %dx%d grid -> %s', widget_name, wspan, hspan, COLS, ROWS, out)) +print(string.format('%s at %gx%g on a %dx%d grid -> %s', widget_name, wspan, hspan, COLS, ROWS, out)) |
