diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-16 19:31:42 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-16 19:31:42 +0200 |
| commit | 0192bc5f17cf4c8868aea81ca93318130246b4d5 (patch) | |
| tree | a95fd08b8d508bda1f12c7e84585b5a586f3c827 /conky.conf | |
| parent | e10bfebb1a908230244e33e970f4750d84ff1b35 (diff) | |
| download | conky-theme-udt-0192bc5f17cf4c8868aea81ca93318130246b4d5.tar.gz conky-theme-udt-0192bc5f17cf4c8868aea81ca93318130246b4d5.zip | |
feat: draw to a Wayland Cairo surface with an error overlay
Entry point, grid maths, palette parsing and widget dispatch.
Uses conky_surface(), not cairo_xlib_surface_create: under
out_to_wayland the Xlib drawable and visual are both nil, so the idiom
every Conky-Lua tutorial uses cannot work here.
The pcall overlay lands before any widget exists, because Conky reports
a Lua fault as a blank screen with no message on any stream. Verified
by injecting a fault and seeing it reported. A missing widget names
itself in its own cell rather than leaving the cell empty.
conky.conf here is a development config with literal colours; the
templated one arrives with the UDT wiring.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'conky.conf')
| -rw-r--r-- | conky.conf | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/conky.conf b/conky.conf new file mode 100644 index 0000000..7bddb64 --- /dev/null +++ b/conky.conf @@ -0,0 +1,36 @@ +-- Development config with literal colours. Task 5 replaces this with the +-- UDT-rendered conky.conf.in. Not the file the installed dashboard uses. +conky.config = { + out_to_x = false, + out_to_wayland = true, + own_window = true, + own_window_type = 'normal', + own_window_class = 'conky-dash', + own_window_argb_visual = true, + own_window_argb_value = 200, + minimum_width = 1200, + minimum_height = 700, + double_buffer = true, + update_interval = 2, + total_run_times = 0, + draw_borders = false, + draw_shades = false, + override_utf8_locale = true, + lua_load = './dashboard.lua', + lua_draw_hook_post = 'main', + -- Literal dev palette, Catppuccin Macchiato values. + color1 = '#8aadf4', -- heading + color2 = '#a5adcb', -- label + color3 = '#494d64', -- rule / border + color4 = '#8bd5ca', -- value + color5 = '#c6a0f6', -- highlight + color6 = '#a6da95', -- ok + color7 = '#ed8796', -- critical + default_color = '#cad3f5', -- body + -- The card fill. dashboard.lua reads this for colors.surface; without it the + -- hex() fallback paints every card magenta. + default_shade_color = '#1e2030', -- body shade +} + +-- Empty: Cairo output covers conky.text entirely, verified by experiment. +conky.text = [[]] |
