#!/usr/bin/env bash
# Press S on the Pi keyboard to capture the current P3 screen (TARGAFILE).
# Files: ~/p3-grabs/T340_NNNN.tga — synced to Dropbox Screenshots/P3 Grabs when rclone is set up.
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
export P3_SERIAL_PORT="${P3_SERIAL_PORT:-/dev/ttyUSB0}"
exec python3 "${SCRIPT_DIR}/tools/p3_grab_hotkey.py" "$@"
