diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-29 13:33:14 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-29 13:33:14 +0200 |
| commit | 9624351d80ace747d3117fb22d6cbd00fce3eedf (patch) | |
| tree | f9adc0a04445718d2d2b5e1b659b00fb8373c73c /conky.conf.in | |
| parent | 272c5732b0bc932749f0e771de51ee49f6cebe5b (diff) | |
| download | conky-theme-udt-9624351d80ace747d3117fb22d6cbd00fce3eedf.tar.gz conky-theme-udt-9624351d80ace747d3117fb22d6cbd00fce3eedf.zip | |
feat: add an Immich memories card with click and scroll
A centred card showing today's "N years ago" photos from Immich, one at
a time on a 30-second rotation, with when each was taken and where.
bin/immich-fetch.sh runs from conky's execi every 30 minutes: it asks
/api/memories for today, converts each preview to PNG (Cairo loads
nothing else) and writes an index with the year, local capture time and
place. The place needs the key's asset.read permission and reads '--'
without it. The key lives in ~/.config/udt/immich.env, like the weather
key, because a GPG-backed store would raise a pinentry unattended.
The dashboard now registers lua_mouse_hook and hands pointer events to
the widget under the pointer. On this card, scrolling steps through the
photos and a left click opens the photo in Immich's web UI and hides the
dashboard so the browser is not stuck beneath it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'conky.conf.in')
| -rw-r--r-- | conky.conf.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/conky.conf.in b/conky.conf.in index 0d88ab6..24bc86f 100644 --- a/conky.conf.in +++ b/conky.conf.in @@ -34,6 +34,9 @@ conky.config = { override_utf8_locale = true, lua_load = '~/.config/conky/dashboard.lua', lua_draw_hook_post = 'main', + -- Clicks and scrolls, dispatched to the widget under the pointer. Safe with + -- own_window: conky only steals root events when it has no window. + lua_mouse_hook = 'mouse', color1 = '@HEADING@', color2 = '@LABEL@', color3 = '@RULE@', @@ -53,4 +56,4 @@ conky.config = { -- samplers, and tying it to conky means nothing fetches while the dashboard is -- down. breaktimer runs at 5s, its daemon's own tick, so the countdown advances -- in the steps the daemon counts in. -conky.text = [[${execi 900 ~/.config/conky/bin/weather-fetch.sh}${execi 60 ~/.config/conky/bin/disks-sample.sh}${execi 900 ~/.config/conky/bin/cache-sample.sh}${execi 1800 ~/.config/conky/bin/pubip-sample.sh}${execi 900 ~/.config/conky/bin/slackware-sample.sh}${execi 300 ~/.config/conky/bin/calendar-sample.sh}${execi 5 ~/.config/conky/bin/breaktimer-sample.sh}]] +conky.text = [[${execi 900 ~/.config/conky/bin/weather-fetch.sh}${execi 60 ~/.config/conky/bin/disks-sample.sh}${execi 900 ~/.config/conky/bin/cache-sample.sh}${execi 1800 ~/.config/conky/bin/pubip-sample.sh}${execi 900 ~/.config/conky/bin/slackware-sample.sh}${execi 300 ~/.config/conky/bin/calendar-sample.sh}${execi 5 ~/.config/conky/bin/breaktimer-sample.sh}${execi 1800 ~/.config/conky/bin/immich-fetch.sh}]] |
