mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Add user-defined theme templates
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
TEMPLATES_DIR="$OMARCHY_PATH/default/themed"
|
TEMPLATES_DIR="$OMARCHY_PATH/default/themed"
|
||||||
|
USER_TEMPLATES_DIR="$HOME/.config/omarchy/theme.d"
|
||||||
NEXT_THEME_DIR="$HOME/.config/omarchy/current/next-theme"
|
NEXT_THEME_DIR="$HOME/.config/omarchy/current/next-theme"
|
||||||
COLORS_FILE="$NEXT_THEME_DIR/colors.toml"
|
COLORS_FILE="$NEXT_THEME_DIR/colors.toml"
|
||||||
|
|
||||||
@@ -30,7 +31,9 @@ if [[ -f $COLORS_FILE ]]; then
|
|||||||
done < "$COLORS_FILE"
|
done < "$COLORS_FILE"
|
||||||
|
|
||||||
shopt -s nullglob
|
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)
|
filename=$(basename "$tpl" .tpl)
|
||||||
output_path="$NEXT_THEME_DIR/$filename"
|
output_path="$NEXT_THEME_DIR/$filename"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user