Discordian Calendar for Remind

Remind is a nice, unixy, script based calendar program.

My interactive shell rc scripts used to call BSD calendar, ddate and fortune, to greet me with the basic informations I needed every day. About the same time when I was moving from calendar to remind I found out that the fate of ddate in util-linux was in danger, apparently because the util-linux maintainer hates it, and while it seems that debian is doing the right thing I decided to reimplement its functionality using remind, so that I could just call a single command for date-related informations instead of two.

My first approach was a pure reimplementation of the ddate output, but then I realized that the variables I was using could have been useful in other remind scripts, and I decided to opt for a reusable include file.

Usage

To use this file, add it as an INCLUDE to your remind file; you will then get the following variables:

  • d_yold: Year Of Our Lady, as a number
  • d_dayofseason: day of season, as a number
  • d_season: season name, as a string
  • d_weekday: week day name, as a string
  • d_holyday: holyday name, as a string
  • d_is_holyday: whether today is a holiday:
    • 0 no holyday for today
    • 1 mayor holyday
    • >1 holyday from some other source

Some example of usage are included at the end of the script, such as:

# ****** A discordian header for remind ******
# (note that the BANNER command should be placed before any REM command)
IFTRIG 29 Feb
   BANNER Reminders for [d_holyday] [d_yold] (%y-%n-%d):
ELSE
   BANNER Reminders for [d_dayofseason] [d_season] [d_yold] (%y-%n-%d):
ENDIF

# ****** Basic ddate functionality ******
PUSH
   OMIT 29 Feb MSG Today is [d_holyday], [d_yold] YOLD.%
   REM SKIP MSG Today is [d_weekday], the [ord(d_dayofseason)] of [d_season] in the YOLD [d_yold] [iif(d_is_holyday, "%_Celebrate "+d_holyday+"!","")]
POP

# ****** Holyday reminder ******
REM SATISFY [d_dayofseason == 5 || d_dayofseason == 50] MSG Celebrate [d_holyday]!

License

I believe that the WTFPL is the debian-accepted software license that most closely preserves the “All Rites Reversed” spirit:

This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under the terms of the Do What The Fuck You Want
To Public License, Version 2, as published by Sam Hocevar. See
http://www.wtfpl.net/ for more details.
Send a comment: unless requested otherwise I may add it, or some extract, to this page.

Return to Top