jml / undistract-me

Notifies you when long-running terminal commands complete
Other
540 stars 48 forks source link

document LONG_RUNNING_COMMAND_CUSTOM #56

Open anarcat opened 5 years ago

anarcat commented 5 years ago

i really like this program. i use it all the time and it's very useful. one thing i would like to see, however, is for the terminal to record the same message as the notification that is delivered through notify-bin. For example, if I call sleep 12 on the terminal, undistract-me will dutifully notify me that "Long command completed" with the message "sleep 12" took 12 seconds. That's great! But I might not be there to see that notification, and then that precious information (how long a command took to run) just disappears!

That's really too bad and makes me a sad cat.

The fix, of course, is to set LONG_RUNNING_COMMAND_CUSTOM to echo, but then you also need to set LONG_RUNNING_COMMAND_CUSTOM_TIMEOUT. That is not documented anywhere in the README, only through reading the source code was I able to figure that stuff out.

So it would be great if those goodies were at least mentioned in the README file.

Thanks!