add play notifications

This commit is contained in:
Pig Monkey 2017-02-05 18:29:56 -08:00
parent 1ecb9019c1
commit 06a9287dc2

View file

@ -16,4 +16,8 @@ else
source=$(xclip -o -selection clipboard)
fi
eval mpv "$source"
notify-send "Loading..." "$source"
if ! mpv "$source"; then
notify-send --urgency=critical "Failed to play" "$source"
fi