Commit 25de7dfd authored by nimrod's avatar nimrod
Browse files

Fallback to bell when notify-send is not present.

parent d123de02
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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."