No longer used

This commit is contained in:
David Heinemeier Hansson
2026-05-17 22:11:10 +02:00
parent 6ecca2962d
commit 75f04857f5
-24
View File
@@ -1,24 +0,0 @@
#!/bin/bash
# omarchy:summary=List themes with preview image paths (tab-separated: name\tslug\tpreview)
# omarchy:hidden=true
omarchy-theme-list 2>/dev/null | while IFS= read -r name; do
[[ -n $name ]] || continue
slug=$(printf '%s' "$name" | tr '[:upper:]' '[:lower:]' | tr ' ' '-')
preview=""
for base in "$HOME/.config/omarchy/themes" "$OMARCHY_PATH/themes"; do
[[ -d $base/$slug ]] || continue
for ext in png jpg jpeg webp; do
if [[ -f $base/$slug/preview.$ext ]]; then
preview="$base/$slug/preview.$ext"
break 2
fi
done
if [[ -z $preview && -d $base/$slug/backgrounds ]]; then
preview=$(find -L "$base/$slug/backgrounds" -maxdepth 1 -type f \( -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.png' -o -iname '*.webp' \) 2>/dev/null | sort | head -n1)
[[ -n $preview ]] && break
fi
done
printf '%s\t%s\t%s\n' "$name" "$slug" "$preview"
done