This is cool, but a simple circular buffer audio recorder connected to stdin would have been sufficient. The recorder records continuously on a circular buffer that stores the last 5 minutes, and whenever OP wakes up, he can press any key on the keyboard to dump the current 5 minutes on storage, with the timestamp as file name. False positives are much less possible, and the whole system can just be a small CLI program.

Not sure I understand how this would work. The whole point is that you often don’t realize that you even woke up. And not sure jumping to go to the computer to hit a key is the smoothest way to fall back asleep

I spend most of my days in front of CLIs but here I really think a cli wouldn’t be the right tool for the job..