Use khal and vdirsyncer organize and synchronize your calendar

Use khal and vdirsyncer organize and synchronize your calendar

 

Save and share calendars can be a bit cumbersome. In our series of 20 fifth article using open source productivity gains in understanding how to make it easier. - Kevin Sonney (Author)

 

Last year, I gave you 19 days introduces 19 new productivity tools (for you) a. This year, I tried every way: in use or not to use your tools used to construct a new year, so you can be more efficient environment.

Use khal and vdirsyncer track your schedule

Calendars lot of trouble to find a good tool is always difficult. But since my calendar as one of my "failure" since last year, I've made some progress.

Currently using the calendar has been most difficult is the need to somehow share online. The two most popular online calendar is Google Calendar and Microsoft Outlook / Exchange. Both are widely used in corporate environments, which means my calendar must support one or two.

Use khal and vdirsyncer organize and synchronize your calendar

Khal calendar

 

Khal is a calendar-based console, you can read and write VCalendar file. It is quite easy to configure, but does not support synchronization with other applications.

Fortunately, khal can be used with vdirsyncer, it is a nice command line program that can be online calendar (and contacts, I will discuss in another article) synchronized to the local disk. Yes, you can upload a new event.

Use khal and vdirsyncer organize and synchronize your calendar

vdirsyncer

 

Vdirsyncer is a Python 3 program, you can install the package manager or pip. It can sync CalDAV, VCalendar / iCalendar, Google Calendar and directory of local files. Since I use Google Calendar, although this is not the easiest setup, it will also be my example.

Set in vdirsyncer in Google Calendar is a reference document, so I will not repeat them here. It is important to ensure that your synchronization settings, and Google Calendar to conflict resolution "winners." That is, if the same event there are two updates, you will need to know which update priority. Similar to do so:

[general]status_path = "~/.calendars/status"[pair personal_sync]a = "personal"b = "personallocal"collections = ["from a", "from b"]conflict_resolution = "a wins"metadata = ["color"][storage personal]type = "google_calendar"token_file = "~/.vdirsyncer/google_calendar_token"client_id = "google_client_id"client_secret = "google_client_secret"[storage personallocal]type = "filesystem"path = "~/.calendars/Personal"fileext = ".ics"

After the first vdirsyncer synchronization, you will see a list of directories in the storage path. Each folder contains several files, calendar every event is a file. The next step is to import khal. First run khal configure the initial setup.

Use khal and vdirsyncer organize and synchronize your calendar

Configuring khal

 

Now, run khal interactive interface will be displayed at the beginning of this article. Enter n The "new event" dialog box. One thing to note here: the name of the directory to match the calendar vdirsyncer created, but you can change khal configuration file to specify more clearly the name. According to the calendar entry is located, add color to the entry can also help you determine your calendar:

[calendars][[personal]]path = ~/.calendars/Personal/[email protected]/color = light magenta[[holidays]]path = ~/.calendars/Personal/cln2stbjc4hmgrrcd5i62ua0ctp6utbg5pr2sor1dhimsp31e8n6errfctm6abj3dtmg@virtual/color = light blue[[birthdays]]path = ~/.calendars/Personal/c5i68sj5edpm4rrfdchm6rreehgm6t3j81jn4rrle0n7cbj3c5m6arj4c5p2sprfdtjmop9ecdnmq@virtual/color = brown

Now, when you run khal interactive, each calendar will be colored to distinguish it from other calendars, and when you add a new entry, it will have a more descriptive name.

Use khal and vdirsyncer organize and synchronize your calendar

Adding a new calendar entry

 

Set some trouble, but after completion, khal and vdirsyncer together can provide an easy way for you to manage your calendar events and their online services to keep pace.

Source: establishment company how to

Guess you like

Origin www.cnblogs.com/a5651651616/p/12233643.html