From: Samir Benmendil Date: Mon, 18 Jul 2022 11:54:15 +0000 (+0100) Subject: khard/khal: add initial config X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/1dbcbf48a66dd152567b90130763c744877dc192?ds=inline khard/khal: add initial config --- diff --git a/Makefile b/Makefile index 6014536..1a9c315 100644 --- a/Makefile +++ b/Makefile @@ -46,6 +46,14 @@ gnupg: systemd sudo ln -sfT $(APATH)/bin/pinentry /usr/local/bin/pinentry .PHONY: gnupg +khal: $(XDG_CONFIG_HOME) + ln -sfT $(APATH)/$@ $(XDG_CONFIG_HOME)/$@ +.PHONY: khal + +khard: $(XDG_CONFIG_HOME) + ln -sfT $(APATH)/$@ $(XDG_CONFIG_HOME)/$@ +.PHONY: khard + kitty: ln -sfT $(APATH)/$@ $(XDG_CONFIG_HOME)/$@ .PHONY: kitty diff --git a/khal/config b/khal/config new file mode 100644 index 0000000..a7468e3 --- /dev/null +++ b/khal/config @@ -0,0 +1,31 @@ +#/etc/khal/khal.conf.sample +[calendars] +[[home]] +path = ~/.local/share/calendars/events +color = dark blue + +[sqlite] +path = ~/.local/share/khal/khal.db + +[locale] +local_timezone = Europe/London +default_timezone = Europe/London + +# If you use certain characters (e.g. commas) in these formats you may need to +# enclose them in "" to ensure that they are loaded as strings. +timeformat = %H:%M +dateformat = %d %B +longdateformat = %Y-%m-%d +datetimeformat = %c +longdatetimeformat = %Y-%m-%d %H:%M + +firstweekday = 0 + +[view] +monthdisplay = firstday +agenda_day_format = "{bold}{name}, {date}{reset}" + +[default] +default_calendar = home +timedelta = 2d # the default timedelta that list uses +highlight_event_days = True # the default is False diff --git a/khard/khard.conf b/khard/khard.conf new file mode 100644 index 0000000..28152ff --- /dev/null +++ b/khard/khard.conf @@ -0,0 +1,53 @@ +# example configuration file for khard version > 0.14.0 +# place it under ~/.config/khard/khard.conf +# This file is parsed by the configobj library. The syntax is described at +# https://configobj.readthedocs.io/en/latest/configobj.html#the-config-file-format + +[addressbooks] +[[contacts]] +path = ~/.local/share/contacts/mailfence + +[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 +# 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 = 4.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 +