dotfiles

[ACTIVE] managed with chezmoi
git clone git://git.figbert.com/dotfiles.git
Log | Files | Refs

commit 05265e05c3e525200f9734d280f6d6ec2885ac0f
parent ccff273c1b948c794f7119d327b79eec56443b32
Author: FIGBERT <figbert@figbert.com>
Date:   Thu, 22 Jul 2021 22:13:53 -0700

Add vdirsyncer, khal, and khard configuration

Diffstat:
Adot_config/khal/config.tmpl | 18++++++++++++++++++
Adot_config/khard/khard.conf.tmpl | 24++++++++++++++++++++++++
Adot_config/vdirsyncer/config.tmpl | 32++++++++++++++++++++++++++++++++
3 files changed, 74 insertions(+), 0 deletions(-)

diff --git a/dot_config/khal/config.tmpl b/dot_config/khal/config.tmpl @@ -0,0 +1,18 @@ +[calendars] + [[personal]] + path = ~/.local/share/vdirsyncer/calendars/{{ .cal.personal }} + [[school]] + path = ~/.local/share/vdirsyncer/calendars/{{ .cal.school }} + [[contacts]] + path = ~/.local/share/vdirsyncer/contacts/{{ .cal.contacts }} + type = birthdays + +[locale] +timeformat = %H:%M +dateformat = %Y-%m-%d +longdateformat = %Y-%m-%d +datetimeformat = %Y-%m-%d %H:%M +longdatetimeformat = %Y-%m-%d %H:%M + +[default] +default_calendar = personal diff --git a/dot_config/khard/khard.conf.tmpl b/dot_config/khard/khard.conf.tmpl @@ -0,0 +1,24 @@ +[addressbooks] +[[main]] +path = ~/.local/share/vdirsyncer/contacts/{{ .cal.contacts }} +[general] +debug = no +default_action = list +editor = nvim +merge_editor = vimdiff + +[contact table] +display = first_name +group_by_addressbook = no +reverse = no +show_nicknames = no +show_uids = yes +sort = last_name +localize_dates = yes +preferred_phone_number_type = pref, cell, home +preferred_email_address_type = pref, work, home + +[vcard] +preferred_version = 3.0 +search_in_source_files = yes +skip_unparsable = no diff --git a/dot_config/vdirsyncer/config.tmpl b/dot_config/vdirsyncer/config.tmpl @@ -0,0 +1,32 @@ +[general] +status_path = "~/.local/share/vdirsyncer/status/" + +[pair contacts] +a = "contacts_local" +b = "contacts_remote" +collections = ["from a", "from b"] +conflict_resolution = "b wins" +[storage contacts_local] +type = "filesystem" +path = "~/.local/share/vdirsyncer/contacts/" +fileext = ".vcf" +[storage contacts_remote] +type = "carddav" +url = "https://{{ .cal.server }}/" +username.fetch = ["command", "bw", "get", "username", "{{ .cal.server }}"] +password.fetch = ["command", "bw", "get", "password", "{{ .cal.server }}"] + +[pair calendar] +a = "calendar_local" +b = "calendar_remote" +collections = ["from a", "from b"] +conflict_resolution = "b wins" +[storage calendar_local] +type = "filesystem" +path = "~/.local/share/vdirsyncer/calendars/" +fileext = ".ics" +[storage calendar_remote] +type = "caldav" +url = "https://{{ .cal.server }}/" +username.fetch = ["command", "bw", "get", "username", "{{ .cal.server }}"] +password.fetch = ["command", "bw", "get", "password", "{{ .cal.server }}"]