Live data from Hacker News

Show HN: Alert yourself after a long-running task in terminal

gist.github.com

11–20 of 51 posts

Re: Show HN: Alert yourself after a long-running task in terminal

#16
For Ubuntu/Gnome users, you can substitute `notify-send` for `terminal-notifier`, as linked.[1]

For WSL users, you can substitute a powershell call to BurntToast[2]

[1]https://gitlab.com/victor-engmark/tilde/-/commit/1fc8b9f6ab0...

[2]https://codelearn.me/2019/01/13/wsl-windows-toast.html

Re: Show HN: Alert yourself after a long-running task in terminal

#17
I hear that `terminal-notifier` is pretty much dead and a better replacement with new MacOS APIs is [0]. In any case, I opted against it because iTerm actually supports this natively, in addition to a few other neat features, and it will work over SSH. I wrote about my solution here [1].

[0] https://github.com/sheagcraig/yo [1] https://cgamesplay.com/post/2020/12/09/iterm-notifications/

Re: Show HN: Alert yourself after a long-running task in terminal

#18
A lot of options here, so I'd like to add another :)

On cygwin/win10, I have an alias for 'wakeme', which under the hood uses Snoretoast, then I just append '; wakeme' to the command I run.

alias wakeme='date && /cygdrive/c/tools/snoretoast/snoretoast.exe -t "hello" -m "wake up" -p "C:\Dropbox\tools\mindblown.png" -s "ms-winsoundevent:Notification.Reminder"'

Re: Show HN: Alert yourself after a long-running task in terminal

#19
This is great. Wanted to something about this for a long time. There are more features I desire: notify me when some string pattern occurs in the log. Also I tend to walk away from desk when I run a long program. So sometimes I'd prefer more aggressive notifications such as calling my cell.
Post reply on HN