Tim Chase on Nostr: Need a 5-minute count-down timer in the terminal? $ sleep $(( 60 * 5)) ; play ...
Need a 5-minute count-down timer in the terminal?
$ sleep $(( 60 * 5)) ; play ding.wav
(or whatever notification you want like inotify or mpg123 or xeyes(1) etc). If you run a BSD that respects SIGINFO, you can even see how much time has elapsed.
Need a stopwatch instead?
$ time cat
Use control+d to stop. Again, access to SIGINFO can give you a lap-timer for free.
Published at
2024-12-30 21:12:30Event JSON
{
"id": "1954546da38ae19ef8c63439440e8a412de6a0b11c0365cde2674572e2359769",
"pubkey": "9d1fe9f29c7a1e42464c3985f7185fe112b286140d32b8586dd34c6f92d6d9ee",
"created_at": 1735593150,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.bsd.cafe/users/gumnos/statuses/113743832696578042",
"activitypub"
]
],
"content": "Need a 5-minute count-down timer in the terminal?\n\n$ sleep $(( 60 * 5)) ; play ding.wav\n\n(or whatever notification you want like inotify or mpg123 or xeyes(1) etc). If you run a BSD that respects SIGINFO, you can even see how much time has elapsed.\n\nNeed a stopwatch instead?\n\n$ time cat\n\nUse control+d to stop. Again, access to SIGINFO can give you a lap-timer for free.",
"sig": "24eab174e794b096b587100c4a469de56d754668d86c652a29f11e13cc774b22d3a5a8b74e525defd404eb488c4717020373e2f0d9070001170ccbc212bcf130"
}