diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-11 09:29:25 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-11 09:29:25 +0200 |
| commit | 953f37ea6c0736a6b977ad4d94073b41fa6483c3 (patch) | |
| tree | 8830da76ab106ab360aed6148e75ba510c4995c7 | |
| parent | 71a210e3a0d79541823db26680126fe1f03847cb (diff) | |
| download | unified-desktop-theme-953f37ea6c0736a6b977ad4d94073b41fa6483c3.tar.gz unified-desktop-theme-953f37ea6c0736a6b977ad4d94073b41fa6483c3.zip | |
feat: add symlink installer
Installs by symlink so the repo stays canonical and the working config cannot
drift from it. accent.rasi is the exception: it points at the generated file in
the wal cache, seeded with the committed placeholder on a fresh install.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G6aeE37K4GHBsaM51yLTTq
| -rwxr-xr-x | install.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..02d5ab9 --- /dev/null +++ b/install.sh @@ -0,0 +1,28 @@ +#!/bin/bash +# Install udt by symlink, so the repo stays canonical. +# Copyright (C) 2026 Danilo M. <danix@danix.xyz> +# Licensed under the GNU General Public License v2 only. +set -euo pipefail + +repo="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +target="$HOME/.config/rofi/udt" + +mkdir -p "$target" "$HOME/bin" "$HOME/.cache/wal" + +# Theme files are symlinked individually; accent.rasi is NOT, it points at the +# generated file in the wal cache instead. +for f in palette.rasi common.rasi launcher.rasi menu.rasi list.rasi; do + ln -sfn "$repo/rofi/udt/$f" "$target/$f" +done + +# Seed the generated accent if it does not exist yet, so themes parse on a +# fresh install before any wallpaper has been set. +if [ ! -f "$HOME/.cache/wal/udt-accent.rasi" ]; then + cp "$repo/rofi/udt/accent.rasi" "$HOME/.cache/wal/udt-accent.rasi" +fi +ln -sfn "$HOME/.cache/wal/udt-accent.rasi" "$target/accent.rasi" + +ln -sfn "$repo/bin/udt-accent" "$HOME/bin/udt-accent" + +echo "installed:" +ls -l "$target" "$HOME/bin/udt-accent" |
