[systemd] Add and enable dotfiles watcher

This commit is contained in:
2026-02-11 00:41:03 -05:00
parent 5195ca97d9
commit ebffa72a9f
3 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1 @@
/home/powellc/.config/systemd/user/update-dotfiles.timer

View File

@ -0,0 +1,17 @@
[Unit]
Description=Hourly Dotfiles Check
Wants=network-online.target
After=network-online.target
[Service]
Type=oneshot
# Change this to your repo path
WorkingDirectory=%h/.dotfiles
# Pull latest changes
ExecStart=/usr/bin/git pull public master --ff-only
# Optional: quieter logs
Nice=10

View File

@ -0,0 +1,11 @@
[Unit]
Description=Run dotfiles check hourly
[Timer]
OnBootSec=5m
OnUnitActiveSec=1h
Persistent=true
[Install]
WantedBy=timers.target