aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/immich.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/widgets/immich.lua b/widgets/immich.lua
index a9caca7..8590dbf 100644
--- a/widgets/immich.lua
+++ b/widgets/immich.lua
@@ -69,7 +69,7 @@ function M.draw(cr, rect, colors)
return
end
if #photos == 0 then
- card.notice(cr, inner, colors, 'MEMORIES', 'no memories today',
+ card.notice(cr, inner, colors, 'MEMORIES', 'no memories this week',
os.date('%d/%m'))
return
end
@@ -81,7 +81,8 @@ function M.draw(cr, rect, colors)
local ago = p.year and (tonumber(os.date('%Y')) - p.year) or nil
local big = ago and tostring(ago) or '--'
- local sub = n > 1 and string.format('%d/%d', i, n) or ''
+ local sub = (photos.week and 'This week' or 'Today')
+ .. (n > 1 and string.format(' %d/%d', i, n) or '')
local t = p.taken
local taken = t and string.format('%02d/%02d/%04d %02d:%02d',
t[3], t[2], t[1], t[4], t[5]) or '--'