Add activity tracker server, Hyprland agent and Gitea image publishing
The Go API on PostgreSQL ingests desktop, browser, presence, manual and Health Auto Export events and serves activities and daily goal summaries. The Hyprland agent records window focus, idle and lock intervals. The CI workflow publishes adam-french.co.uk/adamf/activity-tracker to the Gitea registry and rolls the web_server stack onto it. The image probes itself through a new `tracker healthcheck` command, because distroless has no wget. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
# Install:
|
||||
# cp deploy/systemd/hypr-agent.service ~/.config/systemd/user/
|
||||
# systemctl --user daemon-reload && systemctl --user enable --now hypr-agent
|
||||
#
|
||||
# ~/.config/hypr-agent/env must contain TRACKER_URL and TRACKER_API_KEY (or
|
||||
# TRACKER_API_KEY_FILE), and optionally HYPR_AGENT_TITLES / HYPR_AGENT_REDACT.
|
||||
[Unit]
|
||||
Description=Hyprland activity tracker agent
|
||||
PartOf=graphical-session.target
|
||||
After=graphical-session.target
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=%h/.config/hypr-agent/env
|
||||
ExecStart=%h/.local/bin/hypr-agent run
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical-session.target
|
||||
Reference in New Issue
Block a user