2 ms·
I wrote a bash script for this. Press a key on the keyboard and keep it pressed. When you fall asleep you'll release the key. But instead of waking you up insta
by RBerenguel 12y ago
I wrote a bash script for this. Press a key on the keyboard and keep it pressed. When you fall asleep you'll release the key. But instead of waking you up instantly, it let you sleep for N minutes after the loss of keypress (also limited the total time given to the "time to fall asleep"+"sleeping time," so if you had 20 minutes for the nap, you could limit it as "sleep 10 with max 20")
- qmr 12y agoInteresting -- source?