diff --git a/.shenanigans.sh b/.shenanigans.sh index d409727d0889c90d97d305ec095cf26695d8c176..e607ccc7cd87298092bb0c881b8793daaa9ed86d 100755 --- a/.shenanigans.sh +++ b/.shenanigans.sh @@ -103,6 +103,9 @@ if [ -z "$W" ] || [ -z "$H" ]; then echo "failed to get geometry"; exit 1 fi + W=$((W / 2 * 2)) + H=$((H / 2 * 2)) + ts=$(date '+%F-%H-%M-%S') out="$HOME/Videos/record-${ts}.mp4" echo "Recording ${W}x${H}+${X},${Y} -> ${out}"