I'm often issuing commands that take some time. For example downloading something using a console download app. If I want to be noticed when the command has finished, I usually do something like this:
$ <do something>; echo '<do something> has finished' | osd_cat
Then I can switch to another window and do something else meanwhile. When it's done, I'll be noticed.
Now my problem is that I'm lazy. Oh well. I just don't want to type this everytime. So I wonder if there's a daemon that could watch running processes and trigger some actions when the processes finish.
I would like config options so I could have control on:
filtering the processes to be watched (for example, watch processes that run at least for a minute)
customizing the command to perform when a process has finished