From a091c00c00c1d5ae5e3da7ef31b98293c76d479f Mon Sep 17 00:00:00 2001 From: pants Date: Mon, 21 Sep 2026 14:16:59 -0700 Subject: init --- scripts/interactive.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 scripts/interactive.sh (limited to 'scripts/interactive.sh') 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" -- cgit v1.2.3