dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 1912ae9f6e3bfccf12f98178a29367833464e5ab
parent 6ba1c8e2f6b75e14bb30ba28dd350d58fa707a59
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Sun, 17 Mar 2019 00:13:30 +0100

Add systemd user files

Diffstat:
Mdotfiles.sh | 5+++++
Asystemd/mbsync.service | 8++++++++
Asystemd/mbsync.timer | 10++++++++++
3 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/dotfiles.sh b/dotfiles.sh @@ -106,3 +106,8 @@ echo "$GIT_REPO/suckless/dmenu/config.h --> ~/build/suckless/dmenu-4.9/config.h" rsync -ac --progress $GIT_REPO/suckless/dmenu/config.h ~/build/suckless/dmenu-4.9/config.h echo "$GIT_REPO/suckless/slock/config.h --> ~/build/suckless/slock-1.4/config.h" rsync -ac --progress $GIT_REPO/suckless/slock/config.h ~/build/suckless/slock-1.4/config.h + +echo "$GIT_REPO/systemd/mbsync.service --> ~/.config/systemd/user/mbsync.service" +rsync -ac --progress $GIT_REPO/systemd/mbsync.service ~/.config/systemd/user/mbsync.service +echo "$GIT_REPO/systemd/mbsync.timer --> ~/.config/systemd/user/mbsync.timer" +rsync -ac --progress $GIT_REPO/systemd/mbsync.timer ~/.config/systemd/user/mbsync.timer diff --git a/systemd/mbsync.service b/systemd/mbsync.service @@ -0,0 +1,8 @@ +[Unit] +Description=Mailbox synchronization service +After=network.target network-online.target dbus.socket + +[Service] +Type=oneshot +ExecStart=/usr/bin/mbsync -Va +ExecStartPost=/usr/bin/notmuch new diff --git a/systemd/mbsync.timer b/systemd/mbsync.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Mailbox synchronization timer + +[Timer] +OnBootSec=2m +OnUnitActiveSec=1m +Unit=mbsync.service + +[Install] +WantedBy=timers.target