Add screenshots

This commit is contained in:
Johannes Marbach 2024-03-30 12:46:09 +00:00
parent 3ea3f50cfd
commit 471c1fe0e3
49 changed files with 285 additions and 44 deletions

View file

@ -5,7 +5,7 @@ fb_res=1920x1080
fb_depth=8
fb_format=rgba
unl0kr=$1
executable=$1
outdir=screenshots
config=unl0kr-screenshots.conf
@ -34,8 +34,8 @@ resolutions=(
1920x1080
)
if [[ ! -f $unl0kr || ! -x $unl0kr ]]; then
echo "Error: Could not find unl0kr executable at $unl0kr" 1>&2
if [[ ! -f $executable || ! -x $executable ]]; then
echo "Error: Could not find executable at $executable" 1>&2
exit 1
fi
@ -79,7 +79,7 @@ for theme in ${themes[@]}; do
readme="$readme"$'\n'"## $theme"$'\n\n'
for res in ${resolutions[@]}; do
CRYPTTAB_SOURCE=/dev/sda1 $unl0kr -g $res -C unl0kr-screenshots.conf &
CRYPTTAB_SOURCE=/dev/sda1 $executable -g $res -C $config &
pid=$!
sleep 3 # Wait for UI to render