remove shell blinking, was causing trouble
This commit is contained in:
@@ -18,19 +18,6 @@ _helpexit(){
|
||||
_help
|
||||
exit
|
||||
}
|
||||
function animate() {
|
||||
x0=$( tput cols )
|
||||
pre=$( qolop eval "_qPos save; _qPos abs 1 $x0; _qCol R;" )
|
||||
post=$( qolop eval "_qCol Z; _qPos restore;" )
|
||||
while true; do
|
||||
{
|
||||
printf "%s*%s" "$pre" "$post"
|
||||
sleep 1
|
||||
printf "%s %s" "$pre" "$post"
|
||||
sleep 1
|
||||
} >&2
|
||||
done
|
||||
}
|
||||
|
||||
printf -v filename "grab-%(%FT%H-%M)T.mp4"
|
||||
size=$( xdpyinfo | awk "/dimensions/{print \$2}" )
|
||||
@@ -100,9 +87,6 @@ else
|
||||
size="${w}x${h}"
|
||||
pos="${x},${y}"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
echo Grabbing: $filename ${size}+$pos
|
||||
|
||||
rm -f "$filename"
|
||||
@@ -114,9 +98,6 @@ if [[ $new_shell -eq 1 ]]; then
|
||||
x0=$( tput cols )
|
||||
pre=$( qolop eval "_qPos save; _qPos abs 1 $x0; _qCol R;" )
|
||||
post=$( qolop eval "_qCol Z; _qPos restore;" )
|
||||
animate &
|
||||
animpid=$!
|
||||
trap 'trap - SIGTERM && kill -- $animpid' EXIT SIGINT SIGTERM
|
||||
ffmpeg \
|
||||
-video_size $size \
|
||||
-framerate $framerate \
|
||||
|
||||
Reference in New Issue
Block a user