aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-23 12:37:22 +0200
committerDanilo M. <danix@danix.xyz>2026-09-23 12:37:22 +0200
commit47dcb72c48e165154ef344588eed178c481a535c (patch)
tree38205f4199a3d5c487c50104fced07b77d6a6ad9
parent57b4f80045abd0d483f2d1a94bcf7dc041466edd (diff)
downloadunified-desktop-theme-47dcb72c48e165154ef344588eed178c481a535c.tar.gz
unified-desktop-theme-47dcb72c48e165154ef344588eed178c481a535c.zip
fix: write the kitty theme through its symlink
~/.config/kitty/current-theme.conf is now a symlink into the kitty-conf repo. install -Dm644 unlinked it and left a plain file in its place, so the theme is written through the link with cat instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
-rwxr-xr-xinstall.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/install.sh b/install.sh
index 85d8216..6fba4db 100755
--- a/install.sh
+++ b/install.sh
@@ -95,8 +95,11 @@ if [ -x "$waybar_repo/install.sh" ]; then
echo "waybar: its install.sh failed, bar left on the old colours" >&2
fi
-install -Dm644 "$repo/templates/terminal/kitty-theme.conf" \
- "$HOME/.config/kitty/current-theme.conf"
+# Written through, not replaced: current-theme.conf is a symlink into the
+# kitty-conf repo, and install -D would unlink it and leave a plain file behind.
+mkdir -p "$HOME/.config/kitty"
+cat "$repo/templates/terminal/kitty-theme.conf" \
+ > "$HOME/.config/kitty/current-theme.conf"
# Sublime Text. Copied into Packages/User, which Sublime watches, so writing it
# reaches a running editor. The file still carries @ACCENT@, which udt-accent