From 3ba75c5a62c13658b96e4294fca6d03707097394 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 18 Mar 2025 11:49:25 -0700 Subject: [PATCH] feat: Add dynamic tmux window size detection to recording script --- scripts/tmux_record.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/tmux_record.sh b/scripts/tmux_record.sh index e69de29bb..14b264119 100644 --- a/scripts/tmux_record.sh +++ b/scripts/tmux_record.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Get tmux window size (width x height) +TMUX_SIZE=$(tmux display -p '#{window_width}x#{window_height}') + +# Start asciinema recording with the tmux window size +asciinema rec -c "tmux attach -t 0 -r" tmp.cast --headless --append --tty-size $TMUX_SIZE