mpvwrap: Kill MPV when starting playback
This commit is contained in:
parent
ec8cd25d70
commit
e9de08784c
@ -34,6 +34,7 @@ cachecontent="$(cat $cachefile)"
|
|||||||
|
|
||||||
function video-play {
|
function video-play {
|
||||||
notify-send -u low -t 10 -a 'MPV' "Embedded Video" "Playing $1 as a stream embedded in the desktop"
|
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
|
xwinwrap -ni -fs -b -nf -ov -- mpv -wid WID $1
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user