As per Nick Winter's The Motivation Hacker, I want to measure my happiness. I know that I'm bad at remembering things or responding to reminders, so I'd like to set up a daemon that, at random intervals would:
Check if I'm in a tty and if I am, output a message to that tty/pts, then capture input until newline
Check if I'm in (currently using) the graphical interface, and if I am, launch a dialog to capture input.
How can I do this?