aboutsummaryrefslogtreecommitdiffstats
path: root/AGENTS.md
blob: ff8abc98c69ea43d9acae5d19f50b0c32630cae5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Agent notes

Project-level guidance for this repository. The global agent preferences still
apply; this file only adds what is specific to `conky-theme-udt`.

## Read this first

`DESIGN.md` is the repository's visual identity. Before adding or changing a
widget, read it and match it: the big value at the card's top-right, rows
label-left / value-right, one fluid type size, the `ok` / `warning` / `critical`
colour language. A new card that ignores it is a defect, not a style choice.

## Working on the dashboard

- After editing a widget or `dashboard.lua`: `./restart.sh`. Conky caches a
  required widget module, so a widget edit needs the restart; editing
  `dashboard.lua` alone does not.
- Only a `conky.conf.in` or palette change needs
  `../unified-desktop-theme/install.sh`, which re-renders `conky.conf`.
- Checks: `lua test/test_data.lua && lua test/test_layout.lua && lua test/test_weather.lua`
- Render one widget offscreen without conky:
  `lua test/render.lua <widget> <cols> <rows> <wspan> <hspan> <out.png>`
- The offscreen renderer crops to a single card, so it says nothing about size
  beside neighbours. Check the live dashboard for that.

## Constraints

- This repository is public: no keys, real locations, LAN addresses, hostnames
  or usernames in committed files. Derive per-host data at runtime; use
  `Example City` / generic placeholders in fixtures.
- A Lua error in conky is a blank screen with no message. The `pcall` overlay in
  `dashboard.lua` is the only reason faults are visible, so parsers and widgets
  return nil or a safe default rather than raising.
- Commits are GPG-signed.