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

19
scripts/key.sh Normal file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
# key.sh - Press key or key combination
# Usage: key.sh "Return" or key.sh "ctrl+c" or key.sh "alt+F4"
export DISPLAY=:99
KEY="$1"
if [ -z "$KEY" ]; then
echo "ERROR: Usage: key.sh \"key_combo\"" >&2
exit 1
fi
xdotool key -- "$KEY"
echo "Pressed key: $KEY"
# Auto-screenshot after action
sleep 2
exec "$(dirname "$0")/screenshot.sh"