Add user-defined theme templates

This commit is contained in:
Ryan Hughes
2026-01-05 16:19:52 -05:00
parent 3da8c2a023
commit 103fc09dcf

View File

@@ -1,6 +1,7 @@
#!/bin/bash
TEMPLATES_DIR="$OMARCHY_PATH/default/themed"
USER_TEMPLATES_DIR="$HOME/.config/omarchy/theme.d"
NEXT_THEME_DIR="$HOME/.config/omarchy/current/next-theme"
COLORS_FILE="$NEXT_THEME_DIR/colors.toml"
@@ -30,7 +31,9 @@ if [[ -f $COLORS_FILE ]]; then
done < "$COLORS_FILE"
shopt -s nullglob
for tpl in "$TEMPLATES_DIR"/*.tpl; do
# Process user templates first, then built-in templates (user overrides built-in)
for tpl in "$USER_TEMPLATES_DIR"/*.tpl "$TEMPLATES_DIR"/*.tpl; do
filename=$(basename "$tpl" .tpl)
output_path="$NEXT_THEME_DIR/$filename"