aboutsummaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
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" \