Files
systemd/profile/profile-stats.service
T
2026-01-10 22:12:05 -05:00

20 lines
584 B
Desktop File

# 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 'uv run ${REPO_PATH}/update_profile.py'
[Install]
WantedBy=default.target