aboutsummaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-11 09:58:06 +0200
committerDanilo M. <danix@danix.xyz>2026-09-11 09:58:06 +0200
commit7da664c801123fcba87c7bfbdab47c535c7064a3 (patch)
tree8be81ba8c55c0f1f58be8e10a880bf3f0aeab5f5 /install.sh
parentc677049424d5fe57b4f68ef38d6d375b75efc08f (diff)
downloadunified-desktop-theme-7da664c801123fcba87c7bfbdab47c535c7064a3.tar.gz
unified-desktop-theme-7da664c801123fcba87c7bfbdab47c535c7064a3.zip
fix: draw the power menu avatar again
Sizing the widget with an explicit width and height collapsed it, so nothing was drawn. The original type-4 theme sized it with a horizontal margin instead, letting the widget expand to the window and squeezing it back to a square, so do that. The margin is computed with calc() from 50% rather than the original's hardcoded 710px, which assumed one screen width and would sit off-center on a second monitor. The tilde path was never the problem: rofi does expand it inside a url(). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G6aeE37K4GHBsaM51yLTTq
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/install.sh b/install.sh
index faf2501..f30ad25 100755
--- a/install.sh
+++ b/install.sh
@@ -15,9 +15,9 @@ for f in palette.rasi common.rasi menu.rasi list.rasi grid.rasi powermenu.rasi;
ln -sfn "$repo/rofi/udt/$f" "$target/$f"
done
-# launcher.rasi is generated rather than symlinked: it references the wallpaper
-# by absolute path, which cannot live in a committed file. Regenerating it is
-# why re-running this script after moving the repo is safe.
+# launcher.rasi is generated rather than symlinked: its wallpaper path comes
+# from the wal cache and cannot be committed. Regenerating it is why re-running
+# this script after moving the repo is safe.
rm -f "$target/launcher.rasi"
sed "s|@WPAPER@|$HOME/.cache/wal/wpaper|" \
"$repo/rofi/udt/launcher.rasi" > "$target/launcher.rasi"