Khard configuration

From wikinotes

Sample Config

# ~/.config/khard/khard.conf
# vim: ft=dosini

[addressbooks]
[[default]]
path = ~/.contacts/default/

[general]
default_action = list
editor         = vim
merge_editor   = vimdiff

[contact table]
group_by_addressbook = no
reverse              = no
show_nicknames       = no
show_uids            = yes
sort                 = last_name

Sample Vdirsyncer

You'll also need to synchronize with carddav.
See vdirsyncer for details.

Here's a sample vdirsyncer config that would work.

# ~/.config/vdirsyncer/config
# vim: ft=conf

[general]
status_path = "~/.vdirsyncer/status/"

# ========
# Contacts
# ========

[pair carddav_pers]
a = "carddav_pers_local"
b = "carddav_pers_remote"
collections = ["from b", "from a"]

[storage carddav_pers_local]
type = "filesystem"
path = "~/.contacts/"
fileext = ".vcf"

[storage carddav_pers_remote]
type = "carddav"
url = "https://domain.com/card.php"
auth = "digest"
username = "you"
password.fetch = ["command", "/usr/bin/pass", "my/password"]