diff --git a/systemd/.config/systemd/user/syncnotebook.service b/systemd/.config/systemd/user/syncnotebook.service new file mode 100644 index 0000000..ddd9274 --- /dev/null +++ b/systemd/.config/systemd/user/syncnotebook.service @@ -0,0 +1,6 @@ +[Unit] +Description=Synchronize local notebook + +[Service] +Type=oneshot +ExecStart=/home/bca/.local/bin/syncnotebook diff --git a/systemd/.config/systemd/user/syncnotebook.timer b/systemd/.config/systemd/user/syncnotebook.timer new file mode 100644 index 0000000..d88f147 --- /dev/null +++ b/systemd/.config/systemd/user/syncnotebook.timer @@ -0,0 +1,11 @@ +[Unit] +Description=Notebook synchronization timer + +[Timer] +OnBootSec=5m +OnUnitActiveSec=5m +Persistent=true +Unit=syncnotebook.service + +[Install] +WantedBy=timers.target diff --git a/systemd/.config/systemd/user/timers.target.wants/syncnotebook.timer b/systemd/.config/systemd/user/timers.target.wants/syncnotebook.timer new file mode 120000 index 0000000..bc8d72d --- /dev/null +++ b/systemd/.config/systemd/user/timers.target.wants/syncnotebook.timer @@ -0,0 +1 @@ +/home/bca/.config/systemd/user/syncnotebook.timer \ No newline at end of file