aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/weather-fetch.sh5
-rw-r--r--test/render.lua10
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))