Add user systemd units

main
Ensar Sarajčić 2022-07-27 08:22:52 +02:00
parent cc591f3c36
commit 37f3e3add4
6 changed files with 40 additions and 0 deletions

View File

@ -62,3 +62,6 @@
!/khard/
!/khal/**
!/khal/
!/systemd/**
!/systemd/
/systemd/user/*.wants

View File

@ -265,6 +265,8 @@ reply-to-self=true
# against (non-case-sensitive) and a comma, e.g. subject,text will match a
# subject which contains "text". Use header,~regex to match against a regex.
#subject,~^\[PATCH=colordiff
subject,~^\[PATCH=awk -f /usr/share/aerc/filters/hldiff
subject,~^\[RFC=awk -f /usr/share/aerc/filters/hldiff
text/plain=sed 's/^>\+.*/\x1b[36m&\x1b[0m/'
text/html=pandoc -f html -t plain
image/*=catimg -w $(tput cols) -

View File

@ -0,0 +1,9 @@
[Unit]
Description=Mailbox synchronization service
[Service]
Type=oneshot
ExecStart=/usr/bin/mbsync -Va
[Install]
WantedBy=default.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=Mailbox synchronization timer
[Timer]
OnBootSec=2m
OnUnitActiveSec=5m
Unit=mbsync.service
[Install]
WantedBy=timers.target

View File

@ -0,0 +1,7 @@
[Unit]
Description=Sync calendars and addressbooks with vdirsyncer
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=/usr/bin/vdirsyncer sync

View File

@ -0,0 +1,9 @@
[Unit]
Description=Run vdirsyncer hourly
[Timer]
OnCalendar=hourly
Persistent=true
[Install]
WantedBy=timers.target