add conf for vdirsyncer and khal
This commit is contained in:
parent
48afc9b7a7
commit
964a5a3c30
6 changed files with 88 additions and 0 deletions
3
bin/.local/bin/syncagenda
Executable file
3
bin/.local/bin/syncagenda
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
vdirsyncer sync
|
29
khal/.config/khal/config
Normal file
29
khal/.config/khal/config
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
[calendars]
|
||||||
|
|
||||||
|
[[waarp]]
|
||||||
|
path = ~/.local/share/agendas/waarp/bruno.carlin@waarp.org
|
||||||
|
color = yellow
|
||||||
|
priority = 20
|
||||||
|
|
||||||
|
[[perso]]
|
||||||
|
path = ~/.local/share/agendas/perso/default
|
||||||
|
color = dark green
|
||||||
|
priority = 20
|
||||||
|
|
||||||
|
[[driss]]
|
||||||
|
path = ~/.local/share/agendas/waarp/driss.demiray@waarp.org
|
||||||
|
color = light gray
|
||||||
|
priority = 20
|
||||||
|
|
||||||
|
[locale]
|
||||||
|
timeformat = %H:%M
|
||||||
|
dateformat = %Y-%m-%d
|
||||||
|
longdateformat = %Y-%m-%d
|
||||||
|
datetimeformat = %Y-%m-%d %H:%M
|
||||||
|
longdatetimeformat = %Y-%m-%d %H:%M
|
||||||
|
|
||||||
|
[default]
|
||||||
|
highlight_event_days = True
|
||||||
|
|
||||||
|
[view]
|
||||||
|
frame = color
|
6
systemd/.config/systemd/user/syncagenda.service
Normal file
6
systemd/.config/systemd/user/syncagenda.service
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Synchronize local cache for remote agendas
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/home/bca/.local/bin/syncagenda
|
11
systemd/.config/systemd/user/syncagenda.timer
Normal file
11
systemd/.config/systemd/user/syncagenda.timer
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Calendars synchronization timer
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnBootSec=2m
|
||||||
|
OnUnitActiveSec=5m
|
||||||
|
Persistent=true
|
||||||
|
Unit=syncagenda.service
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
|
@ -0,0 +1 @@
|
||||||
|
/home/bca/.config/systemd/user/syncagenda.timer
|
38
vdirsyncer/.config/vdirsyncer/config
Normal file
38
vdirsyncer/.config/vdirsyncer/config
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
[general]
|
||||||
|
# A folder where vdirsyncer can store some metadata about each pair.
|
||||||
|
status_path = "~/.local/share/vdirsyncer/status/"
|
||||||
|
|
||||||
|
[pair waarp_agenda]
|
||||||
|
a = "waarp_agenda_local"
|
||||||
|
b = "waarp_agenda_remote"
|
||||||
|
collections = ["from a", "from b"]
|
||||||
|
conflict_resolution = "b wins"
|
||||||
|
|
||||||
|
[storage waarp_agenda_remote]
|
||||||
|
type = "google_calendar"
|
||||||
|
token_file = "~/.local/share/vdirsyncer/tokens/waarp"
|
||||||
|
client_id = "948686879514-65efku96birv6u1l48kpajfvaevat51s.apps.googleusercontent.com"
|
||||||
|
client_secret = "YQWLblQIWPK62lDmkyRRXWOz"
|
||||||
|
|
||||||
|
[storage waarp_agenda_local]
|
||||||
|
type = "filesystem"
|
||||||
|
path = "~/.local/share/agendas/waarp/"
|
||||||
|
fileext = ".ics"
|
||||||
|
|
||||||
|
[pair perso_agenda]
|
||||||
|
a = "perso_agenda_local"
|
||||||
|
b = "perso_agenda_remote"
|
||||||
|
collections = ["from a", "from b"]
|
||||||
|
conflict_resolution = "b wins"
|
||||||
|
|
||||||
|
[storage perso_agenda_remote]
|
||||||
|
type = "caldav"
|
||||||
|
url = "https://files.bcarlin.xyz"
|
||||||
|
#https://files.bcarlin.xyz/remote.php/dav
|
||||||
|
username = "bcarlin"
|
||||||
|
password.fetch = ["command", "secret-tool", "lookup", "khal", "persopw"]
|
||||||
|
|
||||||
|
[storage perso_agenda_local]
|
||||||
|
type = "filesystem"
|
||||||
|
path = "~/.local/share/agendas/perso/"
|
||||||
|
fileext = ".ics"
|
Loading…
Add table
Reference in a new issue