From e84e0605697d18dad3d39a84a9ac2585fd1f79fe Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Thu, 10 Sep 2026 12:51:07 +0200 Subject: [PATCH] khal_todo_khard --- khal_todo_khard/.config/khal/config | 30 +++++++++++ khal_todo_khard/.config/khard/khard.conf | 50 +++++++++++++++++++ .../.config/systemd/user/vdirsyncer.service | 9 ++++ .../.config/systemd/user/vdirsyncer.timer | 9 ++++ khal_todo_khard/.config/todoman/config.py | 5 ++ khal_todo_khard/.config/vdirsyncer/config | 36 +++++++++++++ stowed.list | 1 + 7 files changed, 140 insertions(+) create mode 100644 khal_todo_khard/.config/khal/config create mode 100644 khal_todo_khard/.config/khard/khard.conf create mode 100644 khal_todo_khard/.config/systemd/user/vdirsyncer.service create mode 100644 khal_todo_khard/.config/systemd/user/vdirsyncer.timer create mode 100644 khal_todo_khard/.config/todoman/config.py create mode 100644 khal_todo_khard/.config/vdirsyncer/config diff --git a/khal_todo_khard/.config/khal/config b/khal_todo_khard/.config/khal/config new file mode 100644 index 0000000..29aae0c --- /dev/null +++ b/khal_todo_khard/.config/khal/config @@ -0,0 +1,30 @@ +[calendars] + + [[nextcloud_cal_local]] + path = ~/.cache/calendar/nextcloud/* + type = discover + + [[nextcloud_card_local]] + path = ~/.cache/contact/nextcloud/* + type = discover + +[locale] + timeformat = %H:%M + dateformat = %d %b + longdateformat = %d %b %Y + datetimeformat = %d %b à %H:%M + longdatetimeformat = %a %d %b %Y %H:%M + +[default] + default_calendar = personal + highlight_event_days = True + timedelta = 14d + print_new = event + +[highlight_days] + color = dark green + default_color = dark blue + multiple = dark red + +[view] +agenda_event_format = {calendar-color} {cancelled}{start-time} - {title}{repeat-symbol}{alarm-symbol}{reset} diff --git a/khal_todo_khard/.config/khard/khard.conf b/khal_todo_khard/.config/khard/khard.conf new file mode 100644 index 0000000..c24d08e --- /dev/null +++ b/khal_todo_khard/.config/khard/khard.conf @@ -0,0 +1,50 @@ +[addressbooks] +[[contacts]] +path = ~/.cache/contact/**/* +type = discover + +[general] +debug = no +default_action = list +# These are either strings or comma seperated lists +editor = vim, -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 diff --git a/khal_todo_khard/.config/systemd/user/vdirsyncer.service b/khal_todo_khard/.config/systemd/user/vdirsyncer.service new file mode 100644 index 0000000..571646e --- /dev/null +++ b/khal_todo_khard/.config/systemd/user/vdirsyncer.service @@ -0,0 +1,9 @@ +[Unit] +Description=Syncronise Nextcloud instance + +[Service] +Type=oneshot +ExecStart=nextcloudcmd /media/nextcloud 'https://tonitch:jOkN5UaCMRRnjLIe3cH9KEXzb@nc.debucquoy.me' + +[Install] +WantedBy=default.target diff --git a/khal_todo_khard/.config/systemd/user/vdirsyncer.timer b/khal_todo_khard/.config/systemd/user/vdirsyncer.timer new file mode 100644 index 0000000..cda6bf0 --- /dev/null +++ b/khal_todo_khard/.config/systemd/user/vdirsyncer.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Run nextcloud sync every 15 minutes + +[Timer] +OnActiveSec=10min +OnUnitActiveSec=10min + +[Install] +WantedBy=timers.target diff --git a/khal_todo_khard/.config/todoman/config.py b/khal_todo_khard/.config/todoman/config.py new file mode 100644 index 0000000..0277157 --- /dev/null +++ b/khal_todo_khard/.config/todoman/config.py @@ -0,0 +1,5 @@ +path = "~/.cache/calendar/nextcloud/whatdo/" +# date_format = "%d/%m/%Y" +# time_format = "%H:%M" +default_list = "Personal" +default_due = 0 diff --git a/khal_todo_khard/.config/vdirsyncer/config b/khal_todo_khard/.config/vdirsyncer/config new file mode 100644 index 0000000..570120d --- /dev/null +++ b/khal_todo_khard/.config/vdirsyncer/config @@ -0,0 +1,36 @@ +[general] +status_path = "~/.vdirsyncer/status/" + +[storage nextcloud_cal_remote] + type = "caldav" + url = "https://nc.debucquoy.me/remote.php/dav" + username = "tonitch" + password.fetch = ["command", "cat", "~/.config/pass/vdirsyncer.txt"] + +[storage nextcloud_card_remote] + type = "carddav" + url = "https://nc.debucquoy.me/remote.php/dav" + username = "tonitch" + password.fetch = ["command", "cat", "~/.config/pass/vdirsyncer.txt"] + +[storage nextcloud_cal_local] + type = "filesystem" + path = "~/.cache/calendar/nextcloud" + fileext = ".ics" + +[storage nextcloud_card_local] + type = "filesystem" + path = "~/.cache/contact/nextcloud" + fileext = ".vcf" + +[pair nextcloud_cal] + a = "nextcloud_cal_remote" + b = "nextcloud_cal_local" + collections = ["from a"] + metadata= ["color", "displayname", "description", "order"] + +[pair nextcloud_card] + a = "nextcloud_card_remote" + b = "nextcloud_card_local" + collections = ["from a"] + metadata= ["displayname"] diff --git a/stowed.list b/stowed.list index acf3cba..7144ed2 100644 --- a/stowed.list +++ b/stowed.list @@ -4,6 +4,7 @@ dmenu dunst feh git +khal_todo_khard nvim picom polybar