webm format added.
This commit is contained in:
parent
bb9c1332b5
commit
8ad32cbfb5
17
opener.sh
17
opener.sh
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue