[khal] add khal + vdirsyncer config

This commit is contained in:
Gregory Trolliet 2024-11-09 21:32:04 +01:00
parent 9873b02621
commit c0850ddd7f
2 changed files with 62 additions and 0 deletions

19
.config/khal/config Normal file
View file

@ -0,0 +1,19 @@
[calendars]
[[my_calendars_local]]
path = ~/.calendars/raghnarok/*
type = discover
[[octopode_local]]
path = ~/.calendars/octopode/*
type = discover
[locale]
timeformat = %H:%M
dateformat = %d/%m/%Y
longdateformat = %d/%m/%Y
datetimeformat = %d/%m/%Y %H:%M
longdatetimeformat = %d/%m/%Y %H:%M
[default]
default_calendar = Raghnarok

43
.config/vdirsyncer/config Normal file
View file

@ -0,0 +1,43 @@
[general]
status_path = "~/.vdirsyncer/status/"
[pair my_calendars]
a = "my_calendars_local"
b = "my_calendars_remote"
collections = ["from a", "from b"]
metadata = ["displayname", "color"]
conflict_resolution = "b wins"
[storage my_calendars_local]
type = "filesystem"
path = "~/.calendars/raghnarok/"
fileext = ".ics"
[storage my_calendars_remote]
type = "caldav"
url = "https://cloud.vulgarisons.info/remote.php/dav/calendars/raghnarok/"
username = "raghnarok"
password.fetch = ["command", "pass", "show", "vdirsyncer/vulgarisons"]
start_date = "datetime.now() - timedelta(days=365)"
end_date = "datetime.now() + timedelta(days=365)"
[pair octopode]
a = "octopode_local"
b = "octopode_remote"
collections = ["from a", "from b"]
metadata = ["displayname", "color"]
conflict_resolution = "b wins"
[storage octopode_local]
type = "filesystem"
path = "~/.calendars/octopode/"
fileext = ".ics"
[storage octopode_remote]
type = "caldav"
url = "https://cloud.octopode.ch/remote.php/dav/calendars/raghnarok/"
username = "raghnarok"
password.fetch = ["command", "pass", "show", "vdirsyncer/octopode"]
start_date = "datetime.now() - timedelta(days=365)"
end_date = "datetime.now() + timedelta(days=365)"