Initial commit with translated description

This commit is contained in:
2026-03-29 13:18:25 +08:00
commit 4ca4dbf396
19 changed files with 803 additions and 0 deletions

24
scripts/wait.sh Normal file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
# wait.sh - Wait for specified duration then screenshot
# Usage: wait.sh seconds
export DISPLAY=:99
DURATION="$1"
if [ -z "$DURATION" ]; then
echo "ERROR: Usage: wait.sh seconds" >&2
exit 1
fi
# Validate duration is reasonable
if (( $(echo "$DURATION > 100" | bc -l) )); then
echo "ERROR: Duration too long (max 100 seconds)" >&2
exit 1
fi
sleep "$DURATION"
echo "Waited $DURATION seconds"
# Screenshot after waiting
exec "$(dirname "$0")/screenshot.sh"