mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
setup khard and khal with vdirsyncer
This commit is contained in:
parent
4cf39cfef2
commit
9dee18df08
54
home/dot_config/khard/khard.conf
Normal file
54
home/dot_config/khard/khard.conf
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
# 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]
|
||||||
|
[[personal]]
|
||||||
|
path = ~/.contacts/0d4b05d1-31b6-d5a1-7a8e-a9d0b17437c6
|
||||||
|
|
||||||
|
[general]
|
||||||
|
debug = no
|
||||||
|
default_action = list
|
||||||
|
# These are either strings or comma seperated lists
|
||||||
|
editor = nvim, -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
|
@ -15,6 +15,6 @@ fileext = ".ics"
|
|||||||
[storage personal_calendar_remote]
|
[storage personal_calendar_remote]
|
||||||
type = "caldav"
|
type = "caldav"
|
||||||
|
|
||||||
url = {{ (bitwardenFields "item" "98975280-32ee-4929-ae49-af7401888f67").url.value }}
|
url = "{{ (bitwardenFields "item" "98975280-32ee-4929-ae49-af7401888f67").url.value }}"
|
||||||
username = {{ (bitwarden "item" "98975280-32ee-4929-ae49-af7401888f67").login.username }}
|
username = "{{ (bitwarden "item" "98975280-32ee-4929-ae49-af7401888f67").login.username }}"
|
||||||
password = {{ (bitwarden "item" "98975280-32ee-4929-ae49-af7401888f67").login.password }}
|
password = "{{ (bitwarden "item" "98975280-32ee-4929-ae49-af7401888f67").login.password }}"
|
19
home/dot_config/vdirsyncer/config_contacts.tmpl
Normal file
19
home/dot_config/vdirsyncer/config_contacts.tmpl
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
[general]
|
||||||
|
status_path = "~/.vdirsyncer/status/"
|
||||||
|
|
||||||
|
[pair personal_contacts]
|
||||||
|
a = "personal_contacts_local"
|
||||||
|
b = "personal_contacts_remote"
|
||||||
|
collections = ["from a", "from b"]
|
||||||
|
|
||||||
|
[storage personal_contacts_local]
|
||||||
|
type = "filesystem"
|
||||||
|
path = "~/.contacts/"
|
||||||
|
fileext = ".vcf"
|
||||||
|
|
||||||
|
[storage personal_contacts_remote]
|
||||||
|
type = "carddav"
|
||||||
|
|
||||||
|
url = "{{ (bitwardenFields "item" "17646363-f639-4c2f-8895-af75000653ab").url.value }}"
|
||||||
|
username = "{{ (bitwarden "item" "17646363-f639-4c2f-8895-af75000653ab").login.username }}"
|
||||||
|
password = "{{ (bitwarden "item" "17646363-f639-4c2f-8895-af75000653ab").login.password }}"
|
@ -11,6 +11,7 @@
|
|||||||
- w3m
|
- w3m
|
||||||
- lf
|
- lf
|
||||||
- khal
|
- khal
|
||||||
|
- khard
|
||||||
- vdirsyncer
|
- vdirsyncer
|
||||||
state: present
|
state: present
|
||||||
become: true
|
become: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user