From 9f0f06a0369078c9b598d430a4a43ffe03232fe7 Mon Sep 17 00:00:00 2001 From: Nemo Date: Wed, 17 Jun 2020 20:13:12 +0530 Subject: [PATCH] Adds khal and vdirsync configurations --- files/sync/.config/khal/config | 31 ++++++++++++++++++++ files/sync/.config/vdirsyncer/config | 43 ++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 files/sync/.config/khal/config create mode 100644 files/sync/.config/vdirsyncer/config diff --git a/files/sync/.config/khal/config b/files/sync/.config/khal/config new file mode 100644 index 0000000..f942432 --- /dev/null +++ b/files/sync/.config/khal/config @@ -0,0 +1,31 @@ +[calendars] +# https://lostpackets.de/khal/configure.html + +[[personal]] + path = ~/.calendars/radicale/96d6eacc-da02-4c04-81e6-d52f07b7e7bf/ + color = dark blue + priority = 20 + +# TODO: Change this to VCard sync +[[birthdays]] + path = ~/.calendars/radicale/calendar/ + readonly = True + color = "#9b59b6" + +[[recurse]] + path = ~/.calendars/recurse/ + readonly = True + color = "#2ecc71" + +[view] +theme = dark +agenda_event_format = "{calendar-color}[{start-end-time-style}] {title} {repeat-symbol} {reset}" + +[default] +default_calendar = personal + +[locale] +default_timezone = "Asia/Kolkata" +longdatetimeformat = "%d %b %Y (%H:%M)" +longdateformat = "%d %b %Y" +timeformat = "%I:%M" diff --git a/files/sync/.config/vdirsyncer/config b/files/sync/.config/vdirsyncer/config new file mode 100644 index 0000000..c5ef876 --- /dev/null +++ b/files/sync/.config/vdirsyncer/config @@ -0,0 +1,43 @@ +# Run `vdirsyncer --help` for CLI usage. + +# This file doesn't document all available parameters, see +# http://vdirsyncer.pimutils.org/ for the rest of them. + +[general] +# A folder where vdirsyncer can store some metadata about each pair. +status_path = "~/.vdirsyncer/status/" + +[pair recurse] +a = "recurse_local" +b = "recurse_remote" +collections = null + +[storage recurse_local] +type = "filesystem" +path = "~/.calendars/recurse/" +fileext = ".ics" + +[storage recurse_remote] +type = "http" +# single line password entry so it doesn't need pass-show +url.fetch = ["command", "pass", "Keys/recurse_calendar_url"] + +# CALDAV +[pair radicale] +a = "radicale_local" +b = "radicale_remote" +collections = ["96d6eacc-da02-4c04-81e6-d52f07b7e7bf", "calendar"] + +# Calendars also have a color property +metadata = ["displayname", "color"] + +[storage radicale_local] +type = "filesystem" +path = "~/.calendars/radicale" +fileext = ".ics" + +[storage radicale_remote] +type = "caldav" +url = "https://radicale.bb8.fun/nemo/df10ebc5-b72c-c12d-b279-d80633b1ebe8/" +username = "nemo" +password.fetch = ["command", "/home/nemo/projects/scripts/pass-show", "radicale.bb8.fun"]