diff options
Diffstat (limited to 'ding')
-rwxr-xr-x | ding | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -14,4 +14,8 @@ ERROR_DING_URL=https://gramos.me/sounds/macos8/Quack.ogg ERROR_DING=$CACHE_DIR/quack.ogg [ -f "$ERROR_DING" ] || curl $ERROR_DING_URL --create-dirs -so "$ERROR_DING" -"$@" && { mpv --no-terminal "$OK_DING" & } || { mpv --no-terminal "$ERROR_DING" & } +if "$@"; then + mpv --no-terminal "$OK_DING" & +else + mpv --no-terminal "$ERROR_DING" & +fi |