aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorÓscar Nájera <hi@oscarnajera.com>2021-08-25 08:02:15 +0200
committerÓscar Nájera <hi@oscarnajera.com>2021-08-25 08:02:15 +0200
commit17260a18beacd941352d0c46b8b3fcd467eb7c47 (patch)
treef6a72942b828b92b7f0201d2918cc7b31975b21c /config
parent82446b9c17ef384caca76de31437a430e12d8c2d (diff)
downloaddotfiles-17260a18beacd941352d0c46b8b3fcd467eb7c47.tar.gz
dotfiles-17260a18beacd941352d0c46b8b3fcd467eb7c47.tar.bz2
dotfiles-17260a18beacd941352d0c46b8b3fcd467eb7c47.zip
contacts management
Diffstat (limited to 'config')
-rw-r--r--config/khard/khard.conf53
-rw-r--r--config/vdirsyncer/config21
2 files changed, 74 insertions, 0 deletions
diff --git a/config/khard/khard.conf b/config/khard/khard.conf
new file mode 100644
index 0000000..509c71b
--- /dev/null
+++ b/config/khard/khard.conf
@@ -0,0 +1,53 @@
+# example configuration file for khard version > 0.14.0
+# place it under ~/.config/khard/khard.conf
+# This file is parsed by the configobj library. The syntax is described at
+# https://configobj.readthedocs.io/en/latest/configobj.html#the-config-file-format
+
+[addressbooks]
+[[contacts]]
+path = ~/.contacts/contacts/
+
+[general]
+debug = no
+default_action = list
+# These are either strings or comma seperated lists
+editor = emacsclient
+merge_editor = vimdiff
+
+[contact table]
+# display names by first or last name: first_name / last_name / formatted_name
+display = formatted_name
+# group by address book: yes / no
+group_by_addressbook = no
+# reverse table ordering: yes / no
+reverse = no
+# append nicknames to name column: yes / no
+show_nicknames = no
+# show uid table column: yes / no
+show_uids = yes
+# sort by first or last name: first_name / last_name / formatted_name
+sort = last_name
+# localize dates: yes / no
+localize_dates = yes
+# set a comma separated list of preferred phone number types in descending priority
+# or nothing for non-filtered alphabetical order
+preferred_phone_number_type = pref, cell, home
+# set a comma separated list of preferred email address types in descending priority
+# or nothing for non-filtered alphabetical order
+preferred_email_address_type = pref, work, home
+
+[vcard]
+# extend contacts with your own private objects
+# these objects are stored with a leading "X-" before the object name in the vcard files
+# every object label may only contain letters, digits and the - character
+# example:
+# private_objects = Jabber, Skype, Twitter
+# default: , (the empty list)
+private_objects = Jabber, Skype, Twitter
+# preferred vcard version: 3.0 / 4.0
+preferred_version = 3.0
+# Look into source vcf files to speed up search queries: yes / no
+search_in_source_files = no
+# skip unparsable vcard files: yes / no
+skip_unparsable = no
+
diff --git a/config/vdirsyncer/config b/config/vdirsyncer/config
new file mode 100644
index 0000000..b721dd6
--- /dev/null
+++ b/config/vdirsyncer/config
@@ -0,0 +1,21 @@
+[general]
+# A folder where vdirsyncer can store some metadata about each pair.
+status_path = "~/.vdirsyncer/status/"
+
+[pair my_contacts]
+a = "my_contacts_local"
+b = "my_contacts_remote"
+collections = ["from a", "from b"]
+
+[storage my_contacts_local]
+type = "filesystem"
+path = "~/.contacts/"
+fileext = ".vcf"
+
+[storage my_contacts_remote]
+type = "carddav"
+
+# We can simplify this URL here as well. In theory it shouldn't matter.
+url = "https://cloud.oscarnajera.com/remote.php/dav/addressbooks/users/oscar/"
+username = "oscar"
+password.fetch = ["command", "pass", "CS_storage/cloud.oscarnajera.com"]