diff options
author | Philip Wittamore <philip@wittamore.com> | 2025-09-22 23:11:11 +0200 |
---|---|---|
committer | Philip Wittamore <philip@wittamore.com> | 2025-09-22 23:11:11 +0200 |
commit | 3ef768029ffc56f1193f4ea1925ef68807f8ceea (patch) | |
tree | f2649d99b0762bbc98616cab1f6302aa9205612f /mpeg_play | |
parent | 211a526e800457420a633ed2e9b70aa588bfaebf (diff) | |
download | scripts-3ef768029ffc56f1193f4ea1925ef68807f8ceea.tar.gz scripts-3ef768029ffc56f1193f4ea1925ef68807f8ceea.tar.bz2 scripts-3ef768029ffc56f1193f4ea1925ef68807f8ceea.zip |
update
Diffstat (limited to 'mpeg_play')
-rwxr-xr-x | mpeg_play | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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 |