Update camera to support arguments to prefill/select a selection

This commit is contained in:
Tony Blyler 2022-06-20 13:19:55 -04:00
parent 1bf733a4b2
commit 92266cddcb

View file

@ -5,7 +5,7 @@ if command -v mpv &> /dev/null && command -v fzf &> /dev/null; then
set -euo pipefail
printf "%s\0" /dev/video* |
fzf --print0 --read0 -m -1 --height="$((LINES/4))" |
fzf --print0 --read0 --query "${1:-}" -m -1 --height="$((LINES/4))" |
xargs -0 -P 0 -I {} mpv \
-vf=hflip \
--demuxer-lavf-format=video4linux2 \