diff options
author | Matthew Lemon <y@yulqen.org> | 2023-06-05 07:15:02 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-06-05 07:15:18 +0100 |
commit | 8215f1a41188986c03a59d6302e521629954773e (patch) | |
tree | 53bb49b2fc7dc2facf5ed9701b125ccceccf96d0 | |
parent | 0bc7a2f1fb6a1a1e5703206d5d4064fc178ec968 (diff) |
Adds Google calendars to khal
-rw-r--r-- | khal/config | 18 | ||||
-rw-r--r-- | vdirsyncer/config | 18 |
2 files changed, 35 insertions, 1 deletions
diff --git a/khal/config b/khal/config index 953b843..400c6c8 100644 --- a/khal/config +++ b/khal/config @@ -2,9 +2,25 @@ [[radicale]] path = ~/.calendars/radicale/3c6cbab1-0568-1872-a1e8-bc71501565a9 -color = brown +color = light green priority = 10 +[[google_home]] +path = ~/.calendars/google/12panp3nqdbmm9df4if9jigigo@group.calendar.google.com/ +color = light blue + +[[google_work]] +path = ~/.calendars/google/matthew.lemon@gmail.com/ +color = light red + +[[google_timebox]] +path = ~/.calendars/google/c8of12kn0jcmn7fibivvi72kj8@group.calendar.google.com/ +color = yellow + +[[google_non_working]] +path = ~/.calendars/google/uh29md2ulcb23jq7h78ds5d9fs@group.calendar.google.com/ +color = light gray + [view] agenda_event_format = "{start-time} {title}" diff --git a/vdirsyncer/config b/vdirsyncer/config index 8a84b2c..33c7d1f 100644 --- a/vdirsyncer/config +++ b/vdirsyncer/config @@ -39,3 +39,21 @@ type = "caldav" url = "https://cal.16693433.xyz/radicale/lemon/3c6cbab1-0568-1872-a1e8-bc71501565a9/" username = "lemon" password.fetch = ["command", "pass", "show", "radicale_lemon_user"] + +[pair google] +a = "google_local" +b = "google_remote" +collections = ["from a", "from b"] +metadata = ["color", "displayname"] +conflict_resolution = "a wins" + +[storage google_local] +type = "filesystem" +path = "~/.calendars/google/" +fileext = ".ics" + +[storage google_remote] +type = "google_calendar" +token_file = "~/.vdirsyncer/gcal" +client_id = "627319068962-ntpf4k7ouebv6p8dfqcb46qhf7mim2jp.apps.googleusercontent.com" +client_secret = "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" |