diff --git a/khal_todo_khard/.config/khal/config b/khal_todo_khard/.config/khal/config index 29aae0c..ed3b234 100644 --- a/khal_todo_khard/.config/khal/config +++ b/khal_todo_khard/.config/khal/config @@ -1,7 +1,13 @@ [calendars] + [[google_local]] + path = ~/.cache/calendar/google/* + color = light blue + type = discover + [[nextcloud_cal_local]] path = ~/.cache/calendar/nextcloud/* + color = dark green type = discover [[nextcloud_card_local]] @@ -23,7 +29,7 @@ [highlight_days] color = dark green - default_color = dark blue + default_color = light blue multiple = dark red [view] diff --git a/khal_todo_khard/.config/systemd/user/vdirsyncer.service b/khal_todo_khard/.config/systemd/user/vdirsyncer.service index 571646e..14a49ca 100644 --- a/khal_todo_khard/.config/systemd/user/vdirsyncer.service +++ b/khal_todo_khard/.config/systemd/user/vdirsyncer.service @@ -1,9 +1,9 @@ [Unit] -Description=Syncronise Nextcloud instance +Description=Run vdirSyncer [Service] Type=oneshot -ExecStart=nextcloudcmd /media/nextcloud 'https://tonitch:jOkN5UaCMRRnjLIe3cH9KEXzb@nc.debucquoy.me' +ExecStart=vdirsyncer sync [Install] WantedBy=default.target diff --git a/khal_todo_khard/.config/systemd/user/vdirsyncer.timer b/khal_todo_khard/.config/systemd/user/vdirsyncer.timer index cda6bf0..f7d9bb2 100644 --- a/khal_todo_khard/.config/systemd/user/vdirsyncer.timer +++ b/khal_todo_khard/.config/systemd/user/vdirsyncer.timer @@ -1,5 +1,5 @@ [Unit] -Description=Run nextcloud sync every 15 minutes +Description=run vdirsyncer every 15 min [Timer] OnActiveSec=10min diff --git a/khal_todo_khard/.config/vdirsyncer/config b/khal_todo_khard/.config/vdirsyncer/config index 570120d..462cab1 100644 --- a/khal_todo_khard/.config/vdirsyncer/config +++ b/khal_todo_khard/.config/vdirsyncer/config @@ -34,3 +34,20 @@ status_path = "~/.vdirsyncer/status/" b = "nextcloud_card_local" collections = ["from a"] metadata= ["displayname"] + +[storage debucquoyanthony_remote] + type = "google_calendar" + client_id.fetch = ["command", "cat", "~/.config/pass/debucquoyanthony_id.txt"] + client_secret.fetch = ["command", "cat", "~/.config/pass/debucquoyanthony_secret.txt"] + token_file = "~/.config/pass/debucquoyanthony_token.txt" + +[storage debucquoyanthony_local] + type = "filesystem" + path = "~/.cache/calendar/google/debucquoyanthony" + fileext = ".ics" + +[pair debucquoyanthony_cal] + a = "debucquoyanthony_remote" + b = "debucquoyanthony_local" + collections = ["from a"] + metadata= ["color", "displayname", "description", "order"]