From e9de08784c10dfea484f16655e0b6a9d4134a8c7 Mon Sep 17 00:00:00 2001 From: Salt Date: Fri, 15 Sep 2017 17:22:06 -0500 Subject: [PATCH] mpvwrap: Kill MPV when starting playback --- .bin/mpv-xwinwrap | 1 + 1 file changed, 1 insertion(+) diff --git a/.bin/mpv-xwinwrap b/.bin/mpv-xwinwrap index 5d167704..1298041b 100755 --- a/.bin/mpv-xwinwrap +++ b/.bin/mpv-xwinwrap @@ -34,6 +34,7 @@ cachecontent="$(cat $cachefile)" function video-play { notify-send -u low -t 10 -a 'MPV' "Embedded Video" "Playing $1 as a stream embedded in the desktop" + pkill mpv xwinwrap -ni -fs -b -nf -ov -- mpv -wid WID $1 return 0 }