aboutsummaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-16 20:11:27 +0200
committerDanilo M. <danix@danix.xyz>2026-09-16 20:11:27 +0200
commit8137155e977f66440bdeac3f5c292d772b481722 (patch)
treeb858a2e94258d35e5979f94541cf21a462e7772d /install.sh
parentf8211509de84663d5a5d015c0acc5764be4fcae8 (diff)
downloadunified-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-xinstall.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/install.sh b/install.sh
index b2b1576..f5ffa5e 100755
--- a/install.sh
+++ b/install.sh
@@ -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