Initial commit: EventTracker desktop app + Android companion

Desktop: GTK3 + matplotlib app tracking arbitrary events (button ->
timestamp -> CSV), with per-event stats, trend charts, settings
(rename/add events, relocate data file), and a reset-with-backup flow.
Portable desktop launcher via a .desktop.in template + install script,
no machine-specific paths baked in.

Android: minimal Kivy v1 companion reading/writing the same CSV format,
plus buildozer build tooling isolated in a venv and a local p4a recipe
override for kivy (see CLAUDE.md for why).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
AI_Assistant 2026-08-22 07:52:54 +00:00
commit cd9f9456e9
No known key found for this signature in database
17 changed files with 1722 additions and 0 deletions

19
install-launcher.sh Normal file
View file

@ -0,0 +1,19 @@
#!/usr/bin/env bash
# Generates event-tracker.desktop for wherever this repo is actually
# cloned (event-tracker.desktop.in is a template, not a working launcher
# — it has no machine-specific path baked in) and installs it. Re-run
# any time after moving the clone; safe to re-run otherwise.
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
DEST="$HOME/.local/share/applications/event-tracker.desktop"
mkdir -p "$(dirname "$DEST")"
sed \
-e "s#__EXEC_PATH__#$SCRIPT_DIR/event_tracker.py#" \
-e "s#__ICON_PATH__#$SCRIPT_DIR/event-tracker.png#" \
"$SCRIPT_DIR/event-tracker.desktop.in" > "$DEST"
chmod +x "$SCRIPT_DIR/event_tracker.py" "$DEST"
update-desktop-database "$HOME/.local/share/applications" 2>/dev/null || true
echo "Installed launcher: $DEST"