From 3ef768029ffc56f1193f4ea1925ef68807f8ceea Mon Sep 17 00:00:00 2001 From: Philip Wittamore Date: Mon, 22 Sep 2025 23:11:11 +0200 Subject: update --- mpeg_play | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/mpeg_play b/mpeg_play index 1104348..c54643b 100755 --- a/mpeg_play +++ b/mpeg_play @@ -2,14 +2,15 @@ # necessary for Lynx browser video files # chmod +x and place in your PATH -if grep -q "\#EXT3MU" $1 ; then - # this is a playlist - echo "Playing..." - mpv --geometry=800x600 --title="Mpv" --playlist=$1 >/dev/null 2>&1 & - exit +dunstify -t 3000 -a "Video" -u low -i "media-playback-start-symbolic" -h string:x-dunst-stack-tag:$msgTag "MPV Launching" >/dev/null 2>&1 & + +if [ $(grep -c "EXT3MU" $1) -eq 1 ]; then + # this is a playlist + mpv --geometry=1068x600 --title="Mpv" --ontop --idle=yes --force-window=yes --playlist=$1 >/dev/null 2>&1 & else - mpv --geometry=800x600 --title="Mpv" $1 >/dev/null 2>&1 & + mpv --geometry=1068x600 --title="Mpv" --ontop --idle=yes --force-window=yes $1 >/dev/null 2>&1 & fi +exit 0 -- cgit v1.2.3