Migrate to the new setup where default themes live inside omarchy

This commit is contained in:
David Heinemeier Hansson
2026-01-01 16:13:44 -07:00
parent 1b8da49425
commit a308000390

18
migrations/1767306902.sh Normal file
View File

@@ -0,0 +1,18 @@
echo "Migrate to new theme setup"
THEMES_DIR="$HOME/.config/omarchy/themes"
CURRENT_THEME_LINK="$HOME/.config/omarchy/current/theme"
# Get current theme name from symlink before removing anything
CURRENT_THEME_NAME=""
if [[ -L $CURRENT_THEME_LINK ]]; then
CURRENT_THEME_NAME=$(basename "$(readlink "$CURRENT_THEME_LINK")")
fi
# Remove all symlinks from ~/.config/omarchy/themes
find "$THEMES_DIR" -mindepth 1 -maxdepth 1 -type l -delete
# Re-apply the current theme with the new system
if [[ -n $CURRENT_THEME_NAME ]]; then
omarchy-theme-set "$CURRENT_THEME_NAME"
fi