Dont set new theme until background images are available

This commit is contained in:
David Heinemeier Hansson
2025-06-18 22:16:05 +02:00
parent 04b0fb09ee
commit 4932b26e81

View File

@ -27,14 +27,14 @@ done
NEXT_INDEX=$(((INDEX + 1) % TOTAL))
NEW_THEME=${THEMES[$NEXT_INDEX]}
# Set new theme
ln -nsf $NEW_THEME ~/.config/omarchy/current-theme
# Install theme backgrounds
source ~/.config/omarchy/current-theme/backgrounds.sh
THEME_NAME=$(basename "$NEW_THEME")
ln -nsf ~/.config/omarchy/backgrounds/$THEME_NAME ~/.config/omarchy/current-backgrounds
# Set new theme
ln -nsf $NEW_THEME ~/.config/omarchy/current-theme
# Touch alacritty config to pickup the changed theme
touch ~/.config/alacritty/alacritty.toml