webm format added.

This commit is contained in:
#root_informatica 2024-05-11 00:36:59 -03:00
parent bb9c1332b5
commit 8ad32cbfb5
1 changed files with 7 additions and 10 deletions

View File

@ -4,24 +4,21 @@
# view images with or without X server (Xorg).
watch() {
target=$1
# check display.
[ -n "$DISPLAY" ] && nsxiv "$target" \
|| fbv "$target"
[ -n "$DISPLAY" ] && nsxiv "$1" \
|| fbv "$1"
}
# read pdf's with or without X server (Xorg).
read() {
target=$1
[ -n "$DISPLAY" ] && zathura "$target" \
|| fbpdf "$target"
[ -n "$DISPLAY" ] && zathura "$1" \
|| fbpdf "$1"
}
# play video with or without X server (Xorg).
play() {
target=$1
[ -n "$DISPLAY" ] && mpv "$target" \
|| mpv --vo=drm "$target"
[ -n "$DISPLAY" ] && mpv "$1" \
|| mpv --vo=drm "$1"
}
# do it:
@ -52,7 +49,7 @@ fi
;;
## Video
avi|mkv|mp4|gif)
avi|mkv|mp4|webm|gif)
play "$entry"
exit 1
;;