From 82bcfe3f25b1f0c08c93fd35497019b546e24ce2 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sat, 8 May 2021 19:19:41 +0200 Subject: First commit, v0.1 --- README.md | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 94 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 5b38847..523ac37 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,95 @@ # sdep -A simple "date+event" line parser +A simple "date+event" line parser. + +sdep follows the UNIX philosphy (do one thing well, use stdin and stdout) and +is heavily inspired by [suckless](https://suckless.org) utilities such as +[dmenu](https://tools.suckless.org/dmenu/). + +You can wrap it around shell scripts to turn it into a no-nonsense calendar +system. + +## Description + +sdep reads lines of the form `date text` from stdin and writes to stdout those +lines such that `date` is between the two dates specified by the `-f` and `-t` +options, both of which default to the current minute. + +The dates should correspond to a unique minute in time. The format for `date` +can be specified with the same syntax as for date(1). + +## Installation +Edit the Makefile to match your local configuration and type `make install`. + +## Examples +If `events.txt` contains lines formatted as `date text` then + +``` +sdep "$temp" +mv "$temp" events.txt +``` + +will remove all old events from your file. + +You can edit your events using any text editor and you can keep them synced +between multiple devices using something like +[rsync](https://rsync.samba.org/). + +## Scripts +The `scripts` folder contains the few scripts that I use. They are basically +just a slightly more elaborate version of the calendar system described above, +with support for recurring events (e.g. weekly, daily). You can install them +with `make scripts`, but first make sure to adjust them to match your local +configuration, like the location of the events file. + +Most of the script rely on the `-d` option of the GNU date utility, so you +should change that too if you are on a BSD system or on MacOS. -- cgit v1.3