Using Calcurse to keep track of appointments and tasks
At the Command Line
The ability to query at the command line lets you look up tasks, appointments, and events on the fly. By linking Calcurse with a script or an entry in /etc/crontab
, you can automate queries and thus output reminders.
Table 1 gives details of the switches supported by Calcurse. The man page and the detailed documentation list additional parameters. In the program, you can always access the built-in help by pressing ?.
Table 1
Useful Options
Parameter | Explanation |
---|---|
-a, --appointment |
Show the appointments and events for today. |
-a, --next |
Show the appointments and events for the next 24 hours. |
-s <date>, --startday=<date> |
Show the appointments and events for the stated date. |
-r <count>, --range=<count> |
Show the appointments and events within the next <count> days. |
-t <value>, --todo=<value> |
Show the task list with the priority specified in <value>. |
-d <date|count>, --day=<date|count> |
Show the appointments and events for a <date> or for the next <count> days. |
The example in Listing 1 retrieves the entries for the next 10 days. In the output, you will see the data for a single entry on 17 February 2014, which points to an event named B20 Knowledge Space: Marked. YubiKey NEO NFC authentication day in conjunction with a smartphone. The event starts at 7:00pm, ends at 8:00pm, and takes place at the corporate offices.
Listing 1
Retrieving the Entries
Data Storage
Calcurse stores the data locally in your home directory below .calcurse/
. Table 2 explains the function of the individual plain-text files.
Table 2
Data Storage
File Name | Function |
---|---|
apts |
Appointments |
conf |
Configuration and settings for the program |
keys |
Key mappings |
todo |
Task list |
notes/ |
Directory with your notes (one file per note) |
If you want to use a different calendar or save the data to another location on your computer, you need to tell Calcurse by using one of the two switches: -c <file>
or -d <directory>
The corresponding long options are called --calendar
and --directory
. With the former, you only specify a different calendar file, whereas the latter specifies a different directory in which Calcurse then stores the data. Currently, you cannot use both at the same time.
Import and Export
For simplicity, Calcurse stores all entries in plain text – with a date and an entry in each line. It also supports the import and export formats iCalendar version 2.0 (as per RFC 2445 [3]) and PCAL [4]. Because iCalendar is the standard for exchanging calendar data, you can thus exchange appointments with many popular applications on multiple platforms.
The development team is working on full integration of the format. Currently, the software only supports a subset. Among the features not supported in particular is the ability to handle different time zones.
Many websites offer dates for events in iCalendar format. If you have an appointment of this kind, like the example in Listing 2, event.ics
, you can import the appointment with the -i
option (long form: --import
).
Listing 2
event.ics
If you want to read or export an appointment in interactive mode, use i (import) and x (export). You can do this not only for individual items but also for entire months and task lists. To do so, first press Tab to move to the corresponding window or select an entry.
Pressing the keys mentioned above will take you to a menu at the bottom of the window, in which you can choose between the iCalendar and PCAL formats. Then, specify a file name to view the appointment available after importing into Calcurse or make it available for other programs by exporting to a file.
« Previous 1 2 3 Next »
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Direct Download
Read full article as PDF:
Price $2.95
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Find SysAdmin Jobs
News
-
Escuelas Linux 8.0 is Now Available
Just in time for its 25th anniversary, the developers of Escuelas Linux have released the latest version.
-
LibreOffice 7.5 has Arrived Loaded with New Features and Improvements
The favorite office suite of the Linux community has a new release that includes some visual refreshing and new features across all modules.
-
The Next Major Release of Elementary OS Has Arrived
It's been over a year since the developers of elementary OS released version 6.1 (Jólnir) but they've finally made their latest release (Horus) available with a renewed focus on the user.
-
KDE Plasma 5.27 Beta Is Ready for Testing
The latest beta iteration of the KDE Plasma desktop is now available and includes some important additions and fixes.
-
Netrunner OS 23 Is Now Available
The latest version of this Linux distribution is now based on Debian Bullseye and is ready for installation and finally hits the KDE 5.20 branch of the desktop.
-
New Linux Distribution Built for Gamers
With a Gnome desktop that offers different layouts and a custom kernel, PikaOS is a great option for gamers of all types.
-
System76 Beefs Up Popular Pangolin Laptop
The darling of open-source-powered laptops and desktops will soon drop a new AMD Ryzen 7-powered version of their popular Pangolin laptop.
-
Nobara Project Is a Modified Version of Fedora with User-Friendly Fixes
If you're looking for a version of Fedora that includes third-party and proprietary packages, look no further than the Nobara Project.
-
Gnome 44 Now Has a Release Date
Gnome 44 will be officially released on March 22, 2023.
-
Nitrux 2.6 Available with Kernel 6.1 and a Major Change
The developers of Nitrux have officially released version 2.6 of their Linux distribution with plenty of new features to excite users.