maxthomas / memento-mori

Reminder of mortality

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CircleCI

memento-mori

Latin, literally 'remember (that you have) to die'

memento-mori is a small Haskell library and executable that helps one be more cognizant of life (and death). It does this by displaying your age as a rational number instead of an integer.

Seeing this number increase daily, instead of yearly (as one would do on traditional birthdays) may motivate you to better take advantage of what limited, valuable time you have left to live.

So, for example, instead of being 50 years old 180 days after your birthday, you'd be approximately 50.5 years old.

Inspired by this Emacs version.

Building

This project uses stack.

stack setup
stack build
stack install

Use as a command line program

After building:

memento-mori yyyy mm dd

e.g.

memento-mori 1950 10 20

Use in xmobar

In the future, this code will be made into an xmobar plugin.

For now, you can add the following configuration line to ~/.xmobarrc under the commands block:

    -- Memento Mori
    , Run Com "memento-mori" ["1955", "10", "20"] "memento" 0

Or use ComX, etc.

About

Reminder of mortality

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Haskell 100.0%