commit cb040e03649bce92a15c6ff6c1df9bfdb0751102 parent bb22740f81ba8896e6f724e57b30b393356f8e53 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Wed, 12 Jun 2019 10:53:41 +0200 Add systemd setup for mbsync Diffstat:
A | .config/systemd/user/mbsync.service | | | 8 | ++++++++ |
A | .config/systemd/user/mbsync.timer | | | 10 | ++++++++++ |
2 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/.config/systemd/user/mbsync.service b/.config/systemd/user/mbsync.service @@ -0,0 +1,8 @@ +[Unit] +Description=Mailbox synchronization service + +[Service] +Type=oneshot +ExecStart=/usr/bin/mbsync -Va +ExecStartPost=/usr/bin/notmuch new +ExecStartPost=/home/ad/.local/bin/dwmstatus-refresh diff --git a/.config/systemd/user/mbsync.timer b/.config/systemd/user/mbsync.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Mailbox synchronization timer + +[Timer] +OnBootSec=2m +OnUnitActiveSec=5m +Unit=mbsync.service + +[Install] +WantedBy=timers.target