switch from google calendar to posteo calendar

This commit is contained in:
Felix Van der Jeugt 2018-08-13 14:00:59 +02:00
parent b8a2bd5d56
commit 810e1ae548
No known key found for this signature in database
GPG Key ID: 58B209295023754D
5 changed files with 99 additions and 3 deletions

23
config/khal/config Normal file
View File

@ -0,0 +1,23 @@
[calendars]
[[private]]
path = /data/calendar/private/plebbb
color = dark green
[[arbeit]]
path = /data/calendar/arbeit/oqzdgp
color = dark red
[[default]]
path = /data/calendar/default/default
[locale]
timeformat = %H:%M
dateformat = %Y-%m-%d
longdateformat = %Y-%m-%d
datetimeformat = %Y-%m-%d %H:%M
longdatetimeformat = %Y-%m-%d %H:%M
[default]
highlight_event_days = True

View File

@ -23,8 +23,8 @@ c.session.default_name = "default"
c.tabs.background = True
c.tabs.last_close = "close"
c.tabs.show = "multiple"
c.url.default_page = "https://calendar.google.com"
c.url.start_pages = ["https://calendar.google.com"]
c.url.default_page = "about:blank"
c.url.start_pages = ["qute://bookmarks"]
c.aliases = { "wq": "quit --save"
, "set": "set -t"
, "bind": "bind -t"
@ -50,7 +50,6 @@ config.bind("z", 'enter-mode insert ;; \
}', mode="normal")
# I don't use bookmarks
config.unbind('M')
config.unbind('wB')
config.unbind('gb')
config.unbind('gB')
@ -71,6 +70,8 @@ allowed = [ 'https://duckduckgo.com/*'
, 'https://accounts.google.com/*'
, 'https://www.openstreetmap.org/*'
, 'https://web.whatsapp.com'
, 'https://chat.zeus.gent/*'
, 'https://posteo.de/*'
]
for pattern in allowed:

52
config/vdirsyncer/config Normal file
View File

@ -0,0 +1,52 @@
[general]
status_path = "~/.config/vdirsyncer/status"
[pair posteo]
a = "posteo_local"
b = "posteo_remote"
collections = ["default"]
[storage posteo_local]
type = "filesystem"
path = "/data/calendar/default"
fileext = ".ics"
[storage posteo_remote]
type = "caldav"
url = "https://posteo.de:8443/calendars/felix.vanderjeugt/default/"
username = "felix.vanderjeugt@posteo.net"
password.fetch = ["command", "pass", "other/vdirsyncer"]
[pair posteo_arbeit]
a = "arbeit_local"
b = "arbeit_remote"
collections = ["oqzdgp"]
[storage arbeit_local]
type = "filesystem"
path = "/data/calendar/arbeit"
fileext = ".ics"
[storage arbeit_remote]
type = "caldav"
url = "https://posteo.de:8443/calendars/felix.vanderjeugt/oqzdgp/"
username = "felix.vanderjeugt@posteo.net"
password.fetch = ["command", "pass", "other/vdirsyncer"]
[pair posteo_private]
a = "private_local"
b = "private_remote"
collections = ["plebbb"]
[storage private_local]
type = "filesystem"
path = "/data/calendar/private"
fileext = ".ics"
[storage private_remote]
type = "caldav"
url = "https://posteo.de:8443/calendars/felix.vanderjeugt/plebbb/"
username = "felix.vanderjeugt@posteo.net"
password.fetch = ["command", "pass", "other/vdirsyncer"]

9
services/vdirsyncer/run Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
exec env \
HOME="${HOME:-/home/noctua}" \
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-/home/noctua/.config}" \
LC_ALL="en_US.utf-8" \
LANG="en_US.utf-8" \
PATH="/usr/local/bin:$HOME/.local/bin:$PATH" \
DISPLAY="${DISPLAY:-:0}" \
./vdirsyncer

11
services/vdirsyncer/vdirsyncer Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh -e
# check for internet connection
! ip route ls | grep -v ''
# check if the gpg-agent is running
pgrep gpg-agent >/dev/null
vdirsyncer -v WARNING sync 2>&1
exec sleep 10m