diff --git a/.config/khal/config b/.config/khal/config new file mode 100644 index 00000000..d45d4e82 --- /dev/null +++ b/.config/khal/config @@ -0,0 +1,23 @@ +[calendars] + +[[holidays_local]] +path = ~/.local/share/calendars/holidays/* +type = discover + +[[nx_calendar_local]] +path = ~/.local/share/calendars/nx_calendar/* +type = discover + +[[tudelft_local]] +path = ~/.local/share/calendars/tudelft/* +type = discover + +[locale] +timeformat = %H:%M +dateformat = %d/%m/%Y +longdateformat = %d/%m/%Y +datetimeformat = %d/%m/%Y %H:%M +longdatetimeformat = %d/%m/%Y %H:%M + +[default] +default_calendar = tudelft_local diff --git a/.config/vdirsyncer/config b/.config/vdirsyncer/config index 8e6cb87a..54ad20a3 100644 --- a/.config/vdirsyncer/config +++ b/.config/vdirsyncer/config @@ -1,18 +1,46 @@ [general] status_path = "~/.cache/vsync-status/" -[pair nextcloud_contacts] -a = "nx_contacts_local" -b = "nx_contacts_remote" +[pair nx_calendar] +a = "nx_calendar_local" +b = "nx_calendar_remote" collections = ["from a", "from b"] -[storage nx_contacts_local] -type = "filesystem" -path = "~/.local/share/card/contacts" -fileext = ".vcf" +[storage nx_calendar_local] +type="filesystem" +path="~/.local/share/calendars/nx_calendar" +fileext = ".ics" -[storage nx_contacts_remote] -type = "carddav" -url = "https://drive.yigitcolakoglu.com/" +[storage nx_calendar_remote] +type = "caldav" +url = "https://drive.yigitcolakoglu.com/remote.php/dav/calendars/yigitcolakoglu/" username = "yigitcolakoglu" password.fetch = ["command", "pass", "show", "Server/drive.yigitcolakoglu.com/yigitcolakoglu"] + +[pair tudelft] +a = "tudelft_local" +b = "tudelft_remote" +collections = null + +[storage tudelft_local] +type = "filesystem" +path = "~/.local/share/calendars/tudelft/" +fileext = ".ics" + +[storage tudelft_remote] +type = "http" +url = "https://mytimetable.tudelft.nl/ical?6194c418&group=false&eu=eWNvbGFrb2dsdUB0dWRlbGZ0Lm5s&h=QIWV7_uozTp9uex7WnUfPwqbM79lmdtiZEbRRWK7pto=" + +[pair holidays] +a = "holidays_remote" +b = "holidays_local" +collections = null + +[storage holidays_remote] +type = "http" +url = "https://www.mozilla.org/media/caldata/TurkeyHolidays.ics" + +[storage holidays_local] +type = "filesystem" +path = "~/.local/share/calendars/holidays/" +fileext = ".ics"