by voytec · 3y ago · 0 comments
It's used not just for time-sensitive tasks but also not to over-engineer stuff during hyperfocus.
nagme () {
[ "$#" -ne 2 ] && printf "usage: $0 [in_minutes] [text]\n" && return 1
printf "sleeping $1 min before telling you to $2\n"
sleep $(echo $1\*60|bc)
espeak "$2" > /dev/null 2>&1
while :
do
sleep 30
echo -n '.'
espeak "I'm nagging you to $2" > /dev/null 2>&1
done
}It prints out pretty charts :)
I was hoping to open-source it this month, but I'm swamped with work. Maybe next month haha
After moving away from that house I would sleep incredibly badly, and I always wondered if I was waking throughout the night "surprised" at the absence of the bell, which I'd otherwise heard every day of my life.
We air-dry everything anyway, so it’s not a problem for us, but I wouldn’t want one somewhere that relied on machine-drying a lot.
Also early ones were much more failure prone and harder to work on (though manufacturers have pretty much abandoned that metric for consumer machines these days anyways unless you're spending lots extra for it).
#!/bin/bash
[ "$#" -ne 2 ] && echo "Usage: nag when msg\n" && exit -1
when=$1; shift
sleep $when; swaynag -m "$@"