diff options
| author | pants <niklasjo2004@gmail.com> | 2026-09-21 14:16:59 -0700 |
|---|---|---|
| committer | pants <niklasjo2004@gmail.com> | 2026-09-21 14:16:59 -0700 |
| commit | a091c00c00c1d5ae5e3da7ef31b98293c76d479f (patch) | |
| tree | 62c4b3bc114faac9922873ae48672c46cc2cf7d4 /scripts/interactive.sh | |
Diffstat (limited to 'scripts/interactive.sh')
| -rwxr-xr-x | scripts/interactive.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/interactive.sh b/scripts/interactive.sh new file mode 100755 index 0000000..bfaaae0 --- /dev/null +++ b/scripts/interactive.sh @@ -0,0 +1,15 @@ +#!/bin/sh -e + +echo "Select a window to record" +window_id=$(xdotool selectwindow) + +echo -n "Enter video fps: " +read fps + +echo -n "Enter output file name: " +read output_file_name + +output_dir=$(dirname "$output_file_name") +mkdir -p "$output_dir" + +gpu-screen-recorder -w "$window_id" -c mp4 -f "$fps" -a default_output -o "$output_file_name" |
