aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Wittamore <philip@wittamore.com>2025-09-22 23:11:11 +0200
committerPhilip Wittamore <philip@wittamore.com>2025-09-22 23:11:11 +0200
commit3ef768029ffc56f1193f4ea1925ef68807f8ceea (patch)
treef2649d99b0762bbc98616cab1f6302aa9205612f
parent211a526e800457420a633ed2e9b70aa588bfaebf (diff)
downloadscripts-3ef768029ffc56f1193f4ea1925ef68807f8ceea.tar.gz
scripts-3ef768029ffc56f1193f4ea1925ef68807f8ceea.tar.bz2
scripts-3ef768029ffc56f1193f4ea1925ef68807f8ceea.zip
update
-rwxr-xr-xmpeg_play13
1 files 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