From eabdd86404da9368320a659a1405f0685ec7d171 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Fri, 18 Nov 2022 18:16:02 +0100 Subject: bin/mpvplay: update --- bin/mpvplay | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'bin') diff --git a/bin/mpvplay b/bin/mpvplay index c8078c5..e76acff 100755 --- a/bin/mpvplay +++ b/bin/mpvplay @@ -1,8 +1,9 @@ -#!/bin/sh +#!/bin/bash set -e [ -n "$DEBUG" ] && set -x +# uri=$(eval "echo ${1}") uri="${1}" notify-send \ @@ -14,13 +15,14 @@ notify-send \ # if xap now >/dev/null 2>&1; then # xap player run --no-defaults --detached # fi - # exec xap add -n "${uri}" -if ! mpv "${uri}"; then - notify-send \ - -i "$(iconez -n mpv | grep 32)" \ - -a mpv \ - -c error \ - 'failed' \ - "${uri}" -fi + +# if ! mpv "${uri}"; then +# notify-send \ +# -i "$(iconez -n mpv | grep 32)" \ +# -a mpv \ +# -c error \ +# 'failed' \ +# "${uri}" +# fi +exec mpv "${uri}" -- cgit 1.4.1