[systemd] Add and enable dotfiles watcher
This commit is contained in:
@ -0,0 +1 @@
|
|||||||
|
/home/powellc/.config/systemd/user/update-dotfiles.timer
|
||||||
17
systemd/.config/systemd/user/update-dotfiles.service
Normal file
17
systemd/.config/systemd/user/update-dotfiles.service
Normal 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
|
||||||
|
|
||||||
11
systemd/.config/systemd/user/update-dotfiles.timer
Normal file
11
systemd/.config/systemd/user/update-dotfiles.timer
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Run dotfiles check hourly
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnBootSec=5m
|
||||||
|
OnUnitActiveSec=1h
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
|
|
||||||
Reference in New Issue
Block a user