update fzfclip

This commit is contained in:
2026-02-11 09:06:49 +01:00
parent d56cc0e4bf
commit 2d43f929e3
5 changed files with 236 additions and 89 deletions
+3 -3
View File
@@ -45,13 +45,13 @@ mp4_offset=$((offset - 3))
tail -c "+$mp4_offset" "$file" > "$tmp_video"
play_cmd=()
if command -v mpv >/dev/null 2>&1; then
if type mpv >/dev/null 2>&1; then
play_cmd=(mpv --title="Live Photo View: $file" --keep-open=yes --loop-file=yes --loop-playlist=no --idle=yes)
elif command -v vlc >/dev/null 2>&1; then
elif type vlc >/dev/null 2>&1; then
play_cmd=(vlc --meta-title="Live Photo View: $file")
else
echo "Error: No suitable media player found." >&2
exit 1
fi
"${play_cmd[@]}" "$tmp_video"
"${play_cmd[@]}" "$tmp_video"