Link backgrounds instead of copying

This commit is contained in:
David Heinemeier Hansson
2025-07-15 22:00:25 -07:00
parent 89bda8468e
commit 10109bbadc

View File

@ -27,12 +27,10 @@ if ! git clone "$REPO_URL" "$THEME_PATH"; then
exit 1 exit 1
fi fi
# Copy backgrounds if present # Link backgrounds if present
if [ -d $THEME_BACKGROUND_PATH ]; then if [ -d $THEME_BACKGROUND_PATH ]; then
mkdir -p $BACKGROUNDS_THEME_PATH ln -snf $THEME_BACKGROUND_PATH $BACKGROUNDS_THEME_PATH
cp $THEME_BACKGROUND_PATH/* $BACKGROUNDS_THEME_PATH/
fi fi
# Apply the new theme with omarchy-theme-set # Apply the new theme with omarchy-theme-set
omarchy-theme-set $THEME_NAME omarchy-theme-set $THEME_NAME