Update 2024-12-23 11:45 OpenBSD/amd64-t14
This commit is contained in:
parent
180588879c
commit
b3b69a682a
11
.bin/cam
11
.bin/cam
@ -12,7 +12,7 @@ do
|
|||||||
hd) shift; _res="-video_size 1280x720" ;;
|
hd) shift; _res="-video_size 1280x720" ;;
|
||||||
sd) shift; _res="-video_size 640x360" ;;
|
sd) shift; _res="-video_size 640x360" ;;
|
||||||
max) shift; _res=max ;;
|
max) shift; _res=max ;;
|
||||||
[0-9]*x[0-9]*) shift; _res="$arg" ;;
|
[0-9]*x[0-9]*) shift; _res="-video_size $arg" ;;
|
||||||
*) _dev="$arg" ;;
|
*) _dev="$arg" ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
@ -45,15 +45,18 @@ then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
command="$(echo "ffplay -loglevel quiet -f v4l2 $_format $_res -i $_dev" | xargs)"
|
||||||
|
|
||||||
if [ ! -z "$_start" ]
|
if [ ! -z "$_start" ]
|
||||||
then
|
then
|
||||||
ffplay -loglevel quiet -f v4l2 $_format $_res -i $_dev &
|
echo "starting: $command"
|
||||||
|
$command > /dev/null 2>&1 &
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
if [ ! -z "$_stop" ]
|
if [ ! -z "$_stop" ]
|
||||||
then
|
then
|
||||||
# close enough...
|
echo "stopping: $command"
|
||||||
pkill -f "ffplay -loglevel quiet -f v4l2"
|
pkill -qf "$command"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ bar_at_bottom = 0
|
|||||||
# ++ A literal ‘+’
|
# ++ A literal ‘+’
|
||||||
# +@ Prefix for text markup sequences
|
# +@ Prefix for text markup sequences
|
||||||
|
|
||||||
bar_format = +S +@bg=2;+L+@bg=0; +W +|R +A
|
bar_format = +S +@bg=2;+L+@bg=0; i:+M +W +|R +A
|
||||||
|
|
||||||
# +--------------------------------------------------
|
# +--------------------------------------------------
|
||||||
# | WORKSPACE LAYOUT
|
# | WORKSPACE LAYOUT
|
||||||
|
Loading…
Reference in New Issue
Block a user