I have started a long process through a terminal. Is it possible to make the Ubuntu terminal make a sound once the process is complete? This way, I don’t need to keep checking, but will instead be notified through a sound or another notification.
You can use this some alternatives;
$ your-bash-command && aplay /path/to/sound.wav # can also with *.ogg file.
$ your-bash-command && paplay /path/to/sound.ogg # can also with *.wav file.
$ your-bash-command; spd-say "done"
$ your-bash-command && notify-send "done" # without sound $ your-bash-command && notify-send "Process completed" "Come back to the terminal, the task is over"
And this script below is modification of that commands above.
- Create the
#!/bin/bash notify-send "Process completed" "Come back to the terminal, the task is over" spd-say "My lord, your process hasbeen complete."
- Make it callable in
sudo cp notif-me.sh /bin/notif-me;
- Use it;
$ your-bash-command; notif-me # or $ your-bash-command && notif-me
posted 4 months, 3 weeks ago