diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-16 20:11:27 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-16 20:11:27 +0200 |
| commit | 8137155e977f66440bdeac3f5c292d772b481722 (patch) | |
| tree | b858a2e94258d35e5979f94541cf21a462e7772d /install.sh | |
| parent | f8211509de84663d5a5d015c0acc5764be4fcae8 (diff) | |
| download | unified-desktop-theme-8137155e977f66440bdeac3f5c292d772b481722.tar.gz unified-desktop-theme-8137155e977f66440bdeac3f5c292d772b481722.zip | |
refactor: render the conky template from the dashboard repo
The Lua dashboard lives in conky-theme-udt now, so udt-palette renders
that repo's conky.conf.in instead of a local template and install.sh
links the Lua alongside the config.
gen_conky also substitutes critical, for the dashboard's error overlay:
conky reports a Lua fault as a blank window, so the dashboard catches
it and draws the message instead.
The old variables-and-execi template is deleted. Its hardware discovery
was not lost; the hwmon glob-by-name approach is carried into
lib/data.lua deliberately, since fixed indices drift across kernel
reorders.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'install.sh')
| -rwxr-xr-x | install.sh | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -176,11 +176,17 @@ if command -v scp >/dev/null 2>&1; then fi # conky reads one config at startup and never rereads it, so the generated file -# has to be in place before the restart below. Symlinked like everything else -# the repo owns: the host-specific parts (mpd host, the ${goto} offsets in -# conky.text) live in conky.conf.in, so only the colours differ per scheme. +# has to be in place before the restart below. +# +# The Lua dashboard lives in its own repo; udt-palette renders its colours into +# conky.conf there. Both the config and the Lua it loads are linked, since +# lua_load points at ~/.config/conky/dashboard.lua. +conky_repo="$HOME/Programming/GIT/conky-theme-udt" mkdir -p "$HOME/.config/conky" -ln -sfn "$repo/templates/conky.conf" "$HOME/.config/conky/conky.conf" +ln -sfn "$conky_repo/conky.conf" "$HOME/.config/conky/conky.conf" +ln -sfn "$conky_repo/dashboard.lua" "$HOME/.config/conky/dashboard.lua" +ln -sfn "$conky_repo/lib" "$HOME/.config/conky/lib" +ln -sfn "$conky_repo/widgets" "$HOME/.config/conky/widgets" # Reload what is running. Writing the configs is not enough: waybar, kitty and # Hyprland reread on a signal, conky only on a restart, and rofi |
