From ebffa72a9fdfca14fbdd1c5c22c5f6813adc4c36 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Wed, 11 Feb 2026 00:41:03 -0500 Subject: [PATCH] [systemd] Add and enable dotfiles watcher --- .../timers.target.wants/update-dotfiles.timer | 1 + .../systemd/user/update-dotfiles.service | 17 +++++++++++++++++ .../.config/systemd/user/update-dotfiles.timer | 11 +++++++++++ 3 files changed, 29 insertions(+) create mode 120000 systemd/.config/systemd/user/timers.target.wants/update-dotfiles.timer create mode 100644 systemd/.config/systemd/user/update-dotfiles.service create mode 100644 systemd/.config/systemd/user/update-dotfiles.timer diff --git a/systemd/.config/systemd/user/timers.target.wants/update-dotfiles.timer b/systemd/.config/systemd/user/timers.target.wants/update-dotfiles.timer new file mode 120000 index 0000000..786bf3f --- /dev/null +++ b/systemd/.config/systemd/user/timers.target.wants/update-dotfiles.timer @@ -0,0 +1 @@ +/home/powellc/.config/systemd/user/update-dotfiles.timer \ No newline at end of file diff --git a/systemd/.config/systemd/user/update-dotfiles.service b/systemd/.config/systemd/user/update-dotfiles.service new file mode 100644 index 0000000..45ed661 --- /dev/null +++ b/systemd/.config/systemd/user/update-dotfiles.service @@ -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 + diff --git a/systemd/.config/systemd/user/update-dotfiles.timer b/systemd/.config/systemd/user/update-dotfiles.timer new file mode 100644 index 0000000..c561d2d --- /dev/null +++ b/systemd/.config/systemd/user/update-dotfiles.timer @@ -0,0 +1,11 @@ +[Unit] +Description=Run dotfiles check hourly + +[Timer] +OnBootSec=5m +OnUnitActiveSec=1h +Persistent=true + +[Install] +WantedBy=timers.target +