aboutsummaryrefslogtreecommitdiff
path: root/mpeg_play
blob: c54643b83ee8b6bbf0b8b131bbeca78396dd710b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash
# necessary for Lynx browser video files
# chmod +x and place in your PATH

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=1068x600 --title="Mpv" --ontop --idle=yes --force-window=yes $1 >/dev/null 2>&1	&
fi

exit 0