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