From 8709b66d6420235496b2ca1e362c5aa37d9d4241 Mon Sep 17 00:00:00 2001 From: Konstantin Nazarov Date: Mon, 20 Sep 2021 22:56:53 +0100 Subject: [PATCH] Add a post on calendar widget --- .../note.md | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 content/posts/calendar_widget_for_sway_and_wayland_alpha/note.md diff --git a/content/posts/calendar_widget_for_sway_and_wayland_alpha/note.md b/content/posts/calendar_widget_for_sway_and_wayland_alpha/note.md new file mode 100644 index 0000000..5308da3 --- /dev/null +++ b/content/posts/calendar_widget_for_sway_and_wayland_alpha/note.md @@ -0,0 +1,28 @@ +X-Date: 2021-09-20T21:42:33Z +X-Note-Id: 215c8ea2-68d7-4347-9e47-287b0a2f7f5a +Subject: Calendar widget for sway/wayland: alpha +X-Slug: calendar_widget_for_sway_and_wayland_alpha + +I've started writing myself a widget to show the next +meeting I have. When clicked, it should open Zoom or +whatever video conferencing link is specified in location/description. + +It was quite a ride. First, there are no existing solutions for Linux +that allow you to access calendars from command-line. At least there +are none that support all existing popular email providers. + +When you add an email/calendar account in Gnome, what it does under +the hood is use Evolution libraries to handle connections and data +storage. Evolution is very old (started around 2001) and written +in plain C. All existing libraries for it are written in C as well. + +The only thing I've found that I could dismantle and rewrite +is the gnome-shell applet that shows you the next calendar events. +Unfortunately again, it's written in C and uses `libecal` to connect +to Evolution. It's large and complex and will require a lot of work +to get in shape. + +I have the code for my CLI [here on github](https://github.com/knazarov/cal-cli). + +It's possible that eventually I'll rewrite it to Vala, because it has +native support of Gnome libraries and is easier to write in than plain C.