added caldav components (khal, vdirsync, todoman)

This commit is contained in:
kenji
2025-11-25 23:13:07 -06:00
parent 10dda51773
commit 4c69c4a497
6 changed files with 102 additions and 0 deletions
+55
View File
@@ -0,0 +1,55 @@
[calendars]
# PERSONAL
# 45871CB8-E403-4D80-A09E-DE6672A4D693
#
# Scan the folder for any sub-calendars created by vdirsyncer
[[subject_1]]
path = ~/.calendars/E819D7C6-6696-4B09-8566-1374E6DDE42A
type = calendar
color = light green
[[subject_2]]
path = ~/.calendars/FA52DDDC-1AA0-473C-A7CE-A00D53AB58FC
type = calendar
color = dark red
[[subject_3]]
path = ~/.calendars/7BCFB7BF-7CE1-4A5A-B5D4-0F35A3501945
type = calendar
color = yellow
[[subject_4]]
path = ~/.calendars/E93F5723-B305-4FAD-8EAD-49DAEE1EAB63
type = calendar
color = light magenta
[[mcmurry]]
path = ~/.calendars/mcmurry
type = calendar
color = brown
[[home_calendar]]
path = ~/.calendars/personal
type = calendar
color = dark green
[[birthdays]]
path = ~/.calendars/contact_birthdays
type = calendar
color = dark green
[locale]
# Format preferences
timeformat = %H:%M
dateformat = %Y-%m-%d
longdateformat = %Y-%m-%d
datetimeformat = %Y-%m-%d %H:%M
longdatetimeformat = %Y-%m-%d %H:%M
# Set this to your local region (e.g., America/New_York, Europe/London)
local_timezone = America/Chicago
default_timezone = America/Chicago
[default]
default_calendar = home_calendar
@@ -0,0 +1,7 @@
[Unit]
Description=Sync calendars and contacts with vdirsyncer
[Service]
Type=oneshot
ExecStart=/usr/bin/env vdirsyncer sync
RuntimeMaxSec=300
@@ -0,0 +1,10 @@
[Unit]
Description=Run vdirsyncer every 5 minutes
[Timer]
OnBootSec=5m
OnUnitActiveSec=5m
Unit=vdirsyncer.service
[Install]
WantedBy=timers.target
+3
View File
@@ -0,0 +1,3 @@
path = "~/.calendars/*"
date_format = "%Y-%m-%d"
default_list = "personal"
+26
View File
@@ -0,0 +1,26 @@
[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"]
# --- 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 ~/.secrets/vdirsyncer_secrets"]