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
News
-
An All-Snap Version of Ubuntu is In The Works
Along with the standard deb version of the open-source operating system, Canonical will release an-all snap version.
-
Mageia 9 Beta 2 Ready for Testing
The latest beta of the popular Mageia distribution now includes the latest kernel and plenty of updated applications.
-
KDE Plasma 6 Looks to Bring Basic HDR Support
The KWin piece of KDE Plasma now has HDR support and color management geared for the 6.0 release.
-
Bodhi Linux 7.0 Beta Ready for Testing
The latest iteration of the Bohdi Linux distribution is now available for those who want to experience what's in store and for testing purposes.
-
Changes Coming to Ubuntu PPA Usage
The way you manage Personal Package Archives will be changing with the release of Ubuntu 23.10.
-
AlmaLinux 9.2 Now Available for Download
AlmaLinux has been released and provides a free alternative to upstream Red Hat Enterprise Linux.
-
An Immutable Version of Fedora Is Under Consideration
For anyone who's a fan of using immutable versions of Linux, the Fedora team is currently considering adding a new spin called Fedora Onyx.
-
New Release of Br OS Includes ChatGPT Integration
Br OS 23.04 is now available and is geared specifically toward web content creation.
-
Command-Line Only Peropesis 2.1 Available Now
The latest iteration of Peropesis has been released with plenty of updates and introduces new software development tools.
-
TUXEDO Computers Announces InfinityBook Pro 14
With the new generation of their popular InfinityBook Pro 14, TUXEDO upgrades its ultra-mobile, powerful business laptop with some impressive specs.