diff --git a/.bashrc b/.bashrc index 1738b45bfbb5e1e01dff54aa0e393284f6d70cb8..a2bac635d361c06c46256c8e6e507b03bd310c73 100644 --- a/.bashrc +++ b/.bashrc @@ -96,6 +96,7 @@ alias http-server='python3 -m http.server 8080' alias dd='monitor dd status=progress' alias screenshot-cleanup='find "$HOME/Pictures" -name "Screenshot from *.png" -delete' alias bell='printf \a' +command -v notify-send > /dev/null || alias notify-send='bell' monitor () { eval "$@" && notify-send "${1#__} has finished." || notify-send --urgency=critical "${1#__} has failed."