# sdep 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 with the `-f` and `-t` options, both of which default to the current minute. The format for `date` can be specified with the same syntax as for date(1). The dates should correspond to a unique minute in time. ## Installation 1. Either clone the repository or download the latest release version from the `releases` folder (warning: the release archive does not contain the customization scripts). 2. 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 more elaborate version of the calendar system described above, with support for recurring events (e.g. weekly, daily). You can install them with `sudo SD=/path/to/scripts/folder make scripts`, where `SD` specifies the path where the directory where you want your sdep files to be saved; for example it can be `/home/username/.sdep`. For example check that the folder SDEPDATA in Makefile suits you. Most of the scripts 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. ## Version history | Version | Release date | Comment | |:--------|:-------------|:---------------:| | 0.2 | 2023-05-23 | Minor fixes | | 0.1 | 2021-05-08 | Initial release |