implemented config for pimutils. TODO: list of programs needed is starting to become large. For example, this commit introduces the reqirement of a pass password store. make some documentation.

This commit is contained in:
Gabe Venberg 2020-05-31 11:27:00 -05:00
parent baa1ff01ce
commit a9a3a93a7d
5 changed files with 134 additions and 0 deletions

16
khal/.config/khal/config Normal file
View file

@ -0,0 +1,16 @@
[calendars]
[[nextcloud_calendar_local]]
path = ~/.calendars/*
type = discover
[[nextcloud_contacts_local]]
path = ~/.contacts/*
type = discover
[locale]
timeformat = %H:%M
dateformat = %Y-%m-%d
longdateformat = %Y-%m-%d
datetimeformat = %Y-%m-%d %H:%M
longdatetimeformat = %Y-%m-%d %H:%M

View file

@ -0,0 +1,48 @@
# 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 = ~/.contacts/contacts/
[general]
debug = no
default_action = list
# These are either strings or comma seperated lists
editor = nvim, -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 = 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

View file

@ -0,0 +1,7 @@
[main]
path = ~/.calendars/*
default_due = 0
date_format = %Y-%m-%d
default_list = personal
humanize = true
timeformat = %H:%M

View file

@ -0,0 +1,58 @@
# An example configuration for vdirsyncer.
#
# Move it to ~/.vdirsyncer/config or ~/.config/vdirsyncer/config and edit it.
# Run `vdirsyncer --help` for CLI usage.
#
# Optional parameters are commented out.
# This file doesn't document all available parameters, see
# http://vdirsyncer.pimutils.org/ for the rest of them.
[general]
# A folder where vdirsyncer can store some metadata about each pair.
status_path = "~/.cache/vdirsyncer/status/"
# CARDDAV
[pair nextcloud_contacts]
# A `[pair <name>]` block defines two storages `a` and `b` that should be
# synchronized. The definition of these storages follows in `[storage <name>]`
# blocks. This is similar to accounts in OfflineIMAP.
a = "nextcloud_contacts_local"
b = "nextcloud_contacts_remote"
# Synchronize all collections that can be found.
# You need to run `vdirsyncer discover` if new calendars/addressbooks are added
# on the server.
collections = ["from a", "from b"]
# Synchronize the "display name" property into a local file (~/.contacts/displayname).
metadata = ["displayname"]
# To resolve a conflict the following values are possible:
# `null` - abort when collisions occur (default)
# `"a wins"` - assume a's items to be more up-to-date
# `"b wins"` - assume b's items to be more up-to-date
conflict_resolution = "b wins"
[storage nextcloud_contacts_local]
# A storage references actual data on a remote server or on the local disk.
# Similar to repositories in OfflineIMAP.
type = "filesystem"
path = "~/.contacts/"
fileext = ".vcf"
[storage nextcloud_contacts_remote]
type = "carddav"
url = "https://nextcloud.gabevenberg.com"
username = "Toric"
# The password can also be fetched from the system password storage, netrc or a
# custom command. See http://vdirsyncer.pimutils.org/en/stable/keyring.html
password.fetch = ["command", "pass", "nextcloud.gabevenberg.com/Toric"]
# CALDAV
[pair nextcloud_calendar]
a = "nextcloud_calendar_local"
b = "nextcloud_calendar_remote"
collections = ["from a", "from b"]
# Calendars also have a color property
metadata = ["displayname", "color"]
[storage nextcloud_calendar_local]
type = "filesystem"
path = "~/.calendars/"
fileext = ".ics"
[storage nextcloud_calendar_remote]
type = "caldav"
url = "https://nextcloud.gabevenberg.com/"
username = "Toric"
password.fetch = ["command", "pass", "nextcloud.gabevenberg.com/Toric"]

View file

@ -146,6 +146,8 @@ PROMPT='%F{cyan}[%m@%n]%f%F{red}├────┤%f${vcs_info_msg_0_}
setopt ALWAYS_TO_END setopt ALWAYS_TO_END
#complete aliases as well #complete aliases as well
setopt COMPLETE_ALIASES setopt COMPLETE_ALIASES
#select first item when you press tab the first time.
setopt MENU_COMPLETE
#globbing #globbing
#case insensitive globbing #case insensitive globbing
@ -158,6 +160,9 @@ PROMPT='%F{cyan}[%m@%n]%f%F{red}├────┤%f${vcs_info_msg_0_}
alias vimdiff="nvim -d" alias vimdiff="nvim -d"
alias mutt="neomutt" alias mutt="neomutt"
alias fuck='sudo $(fc -ln -1)' alias fuck='sudo $(fc -ln -1)'
alias la='ls -la'
alias ll='ls -l'
#web searches #web searches
alias ddg='web_search ddg' alias ddg='web_search ddg'