Add vdirsyncer
This commit is contained in:
parent
745af1d4d6
commit
dc564c21ed
36
user/vdirsyncer/.config/vdirsyncer/config
Normal file
36
user/vdirsyncer/.config/vdirsyncer/config
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
[general]
|
||||||
|
status_path = "~/.local/share/vdirsyncer/status/"
|
||||||
|
|
||||||
|
[pair contacts]
|
||||||
|
a = "card_local"
|
||||||
|
b = "card_nextcloud"
|
||||||
|
collections = ["from a", "from b"]
|
||||||
|
|
||||||
|
[storage card_local]
|
||||||
|
type = "filesystem"
|
||||||
|
path = "~/.local/contacts/"
|
||||||
|
fileext = ".vcf"
|
||||||
|
|
||||||
|
[storage card_nextcloud]
|
||||||
|
type = "carddav"
|
||||||
|
url = "https://cloud.jombi.fr"
|
||||||
|
username = "nicolas"
|
||||||
|
password.fetch = ["command", "~/.config/vdirsyncer/getpass.py", "nicolas"]
|
||||||
|
|
||||||
|
[pair calendars]
|
||||||
|
a = "cal_local"
|
||||||
|
b = "cal_nextcloud"
|
||||||
|
collections = ["from a", "from b"]
|
||||||
|
|
||||||
|
[storage cal_local]
|
||||||
|
type = "filesystem"
|
||||||
|
path = "~/.local/calendars/"
|
||||||
|
fileext = ".ics"
|
||||||
|
|
||||||
|
[storage cal_nextcloud]
|
||||||
|
type = "caldav"
|
||||||
|
url = "https://cloud.jombi.fr"
|
||||||
|
username = "nicolas"
|
||||||
|
password.fetch = ["command", "~/.config/vdirsyncer/getpass.py", "nicolas"]
|
||||||
|
|
||||||
|
|
10
user/vdirsyncer/.config/vdirsyncer/getpass.py
Executable file
10
user/vdirsyncer/.config/vdirsyncer/getpass.py
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#! /usr/bin/env python2
|
||||||
|
import sys
|
||||||
|
from subprocess import check_output
|
||||||
|
|
||||||
|
|
||||||
|
def get_pass(account):
|
||||||
|
return check_output("pass nextcloud/" + account, shell=True).splitlines()[0]
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
print get_pass(sys.argv[1])
|
Loading…
x
Reference in New Issue
Block a user