diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1233aae --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.secrets diff --git a/caldav/.config/khal/config b/caldav/.config/khal/config new file mode 100644 index 0000000..2d50ef3 --- /dev/null +++ b/caldav/.config/khal/config @@ -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 diff --git a/caldav/.config/systemd/user/vdirsyncer.service b/caldav/.config/systemd/user/vdirsyncer.service new file mode 100644 index 0000000..704a385 --- /dev/null +++ b/caldav/.config/systemd/user/vdirsyncer.service @@ -0,0 +1,7 @@ +[Unit] +Description=Sync calendars and contacts with vdirsyncer + +[Service] +Type=oneshot +ExecStart=/usr/bin/env vdirsyncer sync +RuntimeMaxSec=300 diff --git a/caldav/.config/systemd/user/vdirsyncer.timer b/caldav/.config/systemd/user/vdirsyncer.timer new file mode 100644 index 0000000..cfa9254 --- /dev/null +++ b/caldav/.config/systemd/user/vdirsyncer.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Run vdirsyncer every 5 minutes + +[Timer] +OnBootSec=5m +OnUnitActiveSec=5m +Unit=vdirsyncer.service + +[Install] +WantedBy=timers.target diff --git a/caldav/.config/todoman/config.py b/caldav/.config/todoman/config.py new file mode 100644 index 0000000..abcbdad --- /dev/null +++ b/caldav/.config/todoman/config.py @@ -0,0 +1,3 @@ +path = "~/.calendars/*" +date_format = "%Y-%m-%d" +default_list = "personal" diff --git a/caldav/.config/vdirsyncer/config b/caldav/.config/vdirsyncer/config new file mode 100644 index 0000000..de52e56 --- /dev/null +++ b/caldav/.config/vdirsyncer/config @@ -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"]