Add omarchy-theme-dir and use it to resolve theme paths
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
6aaa5b764e
commit
2996ee6327
@@ -7,13 +7,7 @@
|
||||
find ~/.config/omarchy/themes/ -mindepth 1 -maxdepth 1 \( -type d -o -type l \) -printf '%f\n' 2>/dev/null
|
||||
find "$OMARCHY_PATH/themes/" -mindepth 1 -maxdepth 1 -type d -printf '%f\n'
|
||||
} | sort -u | while read -r name; do
|
||||
if [[ -d ~/.config/omarchy/themes/$name ]]; then
|
||||
theme_dir=~/.config/omarchy/themes/$name
|
||||
else
|
||||
theme_dir="$OMARCHY_PATH/themes/$name"
|
||||
fi
|
||||
|
||||
if [[ -f $theme_dir/preview-unlock.png ]]; then
|
||||
if [[ -f $(omarchy-theme-dir "$name")/preview-unlock.png ]]; then
|
||||
echo "$name"
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user