3 ms·
You can do that with a script, here's mine. It reminds me every 15 minutes. It speaks it via speaker, then captures it and logs it and time. #/bin/bash
by segmondy 7y ago
You can do that with a script, here's mine. It reminds me every 15 minutes. It speaks it via speaker, then captures it and logs it and time.
#/bin/bash
while sleep 900; do
DATE=`date`
echo "Hello, what are you doing?" | espeak
DOING=`zenity -entry --text="what are you doing?"`
echo $DATE, $DOING >> ~/data/doing.txt
done
- maelito 7y agoIs it possible to add to this kind of script the monitoring of idle time ? With a reset when back from an idle time longer than the pause.
- segmondy 7y agoYes, there are commands you can use to monitor keystrokes and mouse movement from command line and I'm sure you can use that to track the idle time.