# lives at ~/.config/systemd/user/profile-stats.service # User-level systemd service to run update_profile.py # Configuration is via ~/.config/profile-stats.env, no in-file path edits needed. # Create that file with one line: # REPO_PATH=/absolute/path/to/this/repo # Then run: # systemctl --user daemon-reload [Unit] Description=Run update_profile.py (profile stats updater) [Service] Type=oneshot EnvironmentFile=%h/.config/profile-stats.env ExecStartPre=/usr/bin/nm-online -q ExecStart=/bin/bash -lc 'cd ${REPO_PATH} && uv run language_stats.py' [Install] WantedBy=default.target