[general]
status_path = "~/.vdirsyncer/status/"

# --- THE PAIR ---
# This links the local folder (a) to the remote server (b)
[pair my_calendar]
a = "my_calendar_local"
b = "my_calendar_remote"
collections = ["from a", "from b"]
metadata = ["displayname", "color"]
conflict_resolution = "b wins"

# --- LOCAL STORAGE ---
# Where the calendar files will sit on your Linux machine
[storage my_calendar_local]
type = "filesystem"
path = "~/.calendars/"
fileext = ".ics"

# --- REMOTE STORAGE ---
# Your online provider details
[storage my_calendar_remote]
type = "caldav"
# You must find the specific CalDAV URL for your provider (Google, Nextcloud, etc.)
url = "https://drive.sakamoto.dev/remote.php/dav"
username = "admin"
password.fetch = ["shell", "cat ~/Dotfiles/.secrets/vdirsyncer_secret"]

# External
[pair school_sched]
a = "school_sched_local"
b = "school_sched_remote"
collections = null
conflict_resolution = "b wins"
# collections = ["from a", "from b"]

[storage school_sched_local]
type = "filesystem"
path = "~/.calendars/school-sched"
fileext = ".ics"

[storage school_sched_remote]
type = "http"
url.fetch = ["shell", "cat ~/Dotfiles/.secrets/school-sched_ics"]
# username = ""
# password = ""

# External
[pair school_task]
a = "school_task_local"
b = "school_task_remote"
collections = null
# collections = ["from a", "from b"]
conflict_resolution = "b wins"

[storage school_task_local]
type = "filesystem"
path = "~/.calendars/school-task"
fileext = ".ics"

[storage school_task_remote]
type = "http"
url.fetch = ["shell", "cat ~/Dotfiles/.secrets/school-task_ics"]
# username = ""
# password = ""




