feat: add scripts to view themes and take their screenshots

This commit is contained in:
2025-06-13 15:40:05 +02:00
parent 7d92c4dd2c
commit 891d6f4783
2 changed files with 75 additions and 0 deletions

18
themes/view.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -e
MYSELF=$(realpath "$0")
MYDIR=$(dirname "$MYSELF")
LIDM_PATH=${LIDM_PATH:-$(command which lidm)}
echo "Using '$LIDM_PATH'"
[[ -e "$LIDM_PATH" ]] || { echo "'$LIDM_PATH' is not executable" >&2; exit 1; }
echo "Press \`Ctrl + C\` once you are done viewing the theme"
sleep 3
for theme in "$MYDIR/"*.ini; do
LIDM_CONF="$theme" "$LIDM_PATH" || :
echo "That was '$(basename "$theme")'"
sleep 2 || :
done