aboutsummaryrefslogtreecommitdiff
path: root/.config/khard
diff options
context:
space:
mode:
Diffstat (limited to '.config/khard')
-rw-r--r--.config/khard/base45
l---------.config/khard/config.sh1
-rwxr-xr-x.config/khard/config_gen25
3 files changed, 71 insertions, 0 deletions
diff --git a/.config/khard/base b/.config/khard/base
new file mode 100644
index 0000000..9be1796
--- /dev/null
+++ b/.config/khard/base
@@ -0,0 +1,45 @@
+[general]
+debug = no
+default_action = list
+editor = vim, -i, NONE
+merge_editor = vimdiff
+
+[contact table]
+# display names by first or last name: first_name / last_name / formatted_name
+display = first_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
+# show kind table column: yes / no
+show_kinds = no
+# 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/khard/config.sh b/.config/khard/config.sh
new file mode 120000
index 0000000..ecf2581
--- /dev/null
+++ b/.config/khard/config.sh
@@ -0,0 +1 @@
+../vdirsyncer/config.sh \ No newline at end of file
diff --git a/.config/khard/config_gen b/.config/khard/config_gen
new file mode 100755
index 0000000..75f59b1
--- /dev/null
+++ b/.config/khard/config_gen
@@ -0,0 +1,25 @@
+#!/bin/sh
+EXPORT_LIB=y . "$XDG_CONFIG_HOME/vdirsyncer/config_gen"
+
+cat << EOF
+[addressbooks]
+
+EOF
+
+_cfg_dav() {
+ [ "$DAV_TYPE" != "carddav" ] && return
+ jq --raw-output '.collections[][0]' "$VDIRSYNCER_STATUS_PATH/$ID.collections" | while read -r collection ; do
+ collection_path="$XDG_DATA_HOME/vdirsyncer/$ID/$collection"
+ displayname_path="$collection_path/displayname"
+ NAME="$(cat "$displayname_path")"
+ cat << EOF
+[[$NAME]]
+path = "$collection_path"
+EOF
+ echo
+ done
+}
+
+. "$CONFIG_FILE"
+
+printf '# %s:%s=%s\n' vim ft dosini