files: play mkv files in mpv

master
Anjandev Momi 4 years ago committed by Miles Alan
parent 317437572a
commit 24c650ee49
  1. 2
      scripts/appscripts/sxmo_files.sh

@ -4,7 +4,7 @@ DIR="$1"
cd "$DIR" || exit 1
handlefiles() {
if echo "$1" | grep -iE ".(webm|ogg|mp4|mov|avi)$"; then
if echo "$1" | grep -iE ".(webm|ogg|mp4|mov|avi|mkv)$"; then
st -e mpv -ao=alsa "$@"
elif echo "$1" | grep -iE ".(wav|opus|m4a|flac|mp3)$"; then
st -e mpv -ao=alsa --vid=no -v "$@"

Loading…
Cancel
Save