aboutsummaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-15 17:08:37 +0200
committerDanilo M. <danix@danix.xyz>2026-09-15 17:08:37 +0200
commit1db739eaf7c2155cee80084183a0a0bbe590d3cd (patch)
tree163be1b0a555ff5a990cea40ccf04c897fbde6a2 /install.sh
parenta9f3e65355b64577044467ca70ca16d00fba016b (diff)
downloadunified-desktop-theme-1db739eaf7c2155cee80084183a0a0bbe590d3cd.tar.gz
unified-desktop-theme-1db739eaf7c2155cee80084183a0a0bbe590d3cd.zip
fix(waybar): drop the per-module colours, and aim at the bar that runs
The bar these roles existed for is gone. The stock one alternated module backgrounds so it read as stripes, and carried a role for each: workspaces, temperature, memory, cpu, time, date, tray, volume, backlight, battery, plus charging. waybar-theme-udt draws every pill on main_bg, and its stylesheets reference seven names in total, none of them a module. So all eleven had no consumer left in any of the nine schemes. They are deleted rather than renamed. Renaming them after the new bar's modules would have invented consumers that do not exist: nothing reads a "mail" or "launcher" colour, because the pills are deliberately uniform. Re-adding one means a stylesheet that actually references it. install.sh was still writing the theme into ~/.config/waybar/, which hyprland no longer launches, so switching scheme recoloured a bar nobody sees while the running one kept its old palette. It writes to ~/.config/waybar-udt/ now, under the fixed name that bar imports, so there is no import to repoint. The stock directory is left exactly as it was, and deliberately gets no new theme: its stylesheets still ask for the per-module names, so writing one there would leave it referencing colours that no longer exist. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh20
1 files changed, 12 insertions, 8 deletions
diff --git a/install.sh b/install.sh
index cdcdc99..7bc93c5 100755
--- a/install.sh
+++ b/install.sh
@@ -48,14 +48,18 @@ ln -sfn "$repo/bin/udt-palette" "$HOME/bin/udt-palette"
# with settings that are none of this repo's business.
scheme="$(sed -n 's/^scheme *= *//p' "$selector")"
-# waybar reads whichever themes/<name>.css style.css imports, so write the file
-# under the scheme's own name and repoint the import. The older per-flavour
-# files in themes/ are left alone; they are simply no longer imported.
-install -Dm644 "$repo/templates/waybar/theme.css" \
- "$HOME/.config/waybar/themes/$scheme.css"
-if [ -f "$HOME/.config/waybar/style.css" ]; then
- sed -i "s|@import \"themes/.*\.css\";|@import \"themes/$scheme.css\";|" \
- "$HOME/.config/waybar/style.css"
+# waybar. The bar is waybar-theme-udt, which keeps its own config directory and
+# imports styles/theme.css under a fixed name, so this is a copy to one path
+# with no import to repoint: switching scheme rewrites the file the running bar
+# already reads.
+#
+# The stock ~/.config/waybar/ is deliberately left alone. Nothing launches it
+# any more, and its stylesheets still reference the per-module role names this
+# generator no longer emits, so writing a new theme in there would leave it
+# referencing colours that do not exist rather than simply sitting unused.
+if [ -d "$HOME/.config/waybar-udt" ]; then
+ install -Dm644 "$repo/templates/waybar/theme.css" \
+ "$HOME/.config/waybar-udt/styles/theme.css"
fi
install -Dm644 "$repo/templates/terminal/kitty-theme.conf" \