#!/bin/bash

# omarchy:summary=List themes that can style the Plymouth boot screen
# omarchy:examples=omarchy plymouth list

{
  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 [[ -f $(omarchy-theme-dir "$name")/preview-unlock.png ]]; then
    echo "$name"
  fi
done
