commit 9d4ca9171aff5bc7c16e33870f570e6b3a1e91c9
parent 2f2a00bffe4df5cc5a513e56a6e1c72eeda1524d
Author: Alex Balgavy <alex@balgavy.eu>
Date: Sun, 3 Jan 2021 12:11:59 +0100
linkhandler: add viewer for gifv files
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/scripts/linkhandler b/scripts/linkhandler
@@ -11,6 +11,9 @@ case "$1" in
curl -sL "$1" > "/tmp/$(printf "%s" "$1" | sed "s/.*\///")" \
&& sxiv -a "/tmp/$(printf "%s" "$1" | sed "s/.*\///")" 1>/dev/null 2>&1 &
;;
+ *gifv)
+ setsid -f mpv -loop "$1" 1>/dev/null 2>&1
+ ;;
*mp3|*flac|*opus|*mp3?source*)
setsid -f mpv --volume=50 "$1" 1>/dev/null 2>&1
;;