diff --git a/roles/dotfiles/files/fish/functions/cam.fish b/roles/dotfiles/files/fish/functions/cam.fish new file mode 100644 index 0000000..a5fedc9 --- /dev/null +++ b/roles/dotfiles/files/fish/functions/cam.fish @@ -0,0 +1,4 @@ +# Defined in - @ line 1 +function cam --wraps='gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0' --description 'alias cam=gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0' + gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0 $argv; +end