I would like to always receive a visual notification when a process has finished in a terminal window. Example of such a process:
youtube-dl -cit --extract-audio --audio-format mp3 https://www.youtube.com/....
Use this:
yourlongrunningcommand ; notify-send "Yay! We're done! Off to the bar!"
To understand the command:
;
denoted sequential execution. First execute yourlongrunningcommand
and when done, execute the next command... which isnotify-send
, which is nothing more than the type of notification
you wanted as per our comment exchangeI just googled to know that second part. I found this on askubuntu.com.
sleep 30 ; xmessage -center "Sleep 30 Done"
Where you substitutesleep 30
with your command and enter the text you like between the double quotes? Basically, it's two commands executed in sequence. That's what the;
stands for: it separates two commands.alert
in Ubuntu's .bashrc.