mirror of
https://github.com/javalsai/lidm.git
synced 2025-09-01 02:47:59 +02:00
feat: add scripts to view themes and take their screenshots
This commit is contained in:
18
themes/view.sh
Executable file
18
themes/view.sh
Executable 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
|
Reference in New Issue
Block a user