Timeline for Alternative ways to set a timer on macOS
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 17, 2022 at 18:54 | comment | added | J.Z. | Great answer, thanks! Some small mods: this lets you specify the message to say, and also runs it in the background: function olt() { secs=$(echo "$1 * 60" | bc); msg="${@:2}"; sleep $secs && say $msg & } . With this in my .bash_profile, I can do $ olt 0.1 ok stop doing that. and carry on with the term. Cheers! z | |
| Sep 3, 2021 at 4:31 | comment | added | Luke Griffiths | I was surprised by bash's concatenation syntax, so here's the osascript command I ended up using: osascript -e 'display notification "'"$1 minute timer complete"'" with title "Ding!"' | |
| Sep 3, 2021 at 3:17 | comment | added | Luke Griffiths | If you'd like a notification instead of audible alert, you can replace say "Beep boop" (in the first function; don't want 1000 notifications) with osascript -e 'display notification "Lorem ipsum dolor sit amet" with title "Title"' as described here (thanks @grg) | |
| Jul 3, 2019 at 4:39 | comment | added | Hieu Vo | very engineering friendly! | |
| Mar 7, 2019 at 21:06 | history | answered | David Winiecki | CC BY-SA 4.0 |