alacritty.toml fallback for legacy themes without colors.toml (#5404)

* add generation of colors.toml via alacritty.toml

* Shorter command name

* Fix perms

---------

Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
Paul Repin
2026-04-29 15:46:18 +02:00
committed by GitHub
co-authored by David Heinemeier Hansson
parent 66da3644fc
commit 2f257e167c
2 changed files with 212 additions and 0 deletions
+5
View File
@@ -25,6 +25,11 @@ mkdir -p "$NEXT_THEME_PATH"
cp -r "$OMARCHY_THEMES_PATH/$THEME_NAME/"* "$NEXT_THEME_PATH/" 2>/dev/null
cp -r "$USER_THEMES_PATH/$THEME_NAME/"* "$NEXT_THEME_PATH/" 2>/dev/null
# Generate colors.toml from alacritty.toml if theme is missing colors.toml
if [[ ! -f $NEXT_THEME_PATH/colors.toml && -f $NEXT_THEME_PATH/alacritty.toml ]]; then
omarchy-theme-colors-from-alacritty "$NEXT_THEME_PATH"
fi
# Generate dynamic configs
omarchy-theme-set-templates