aboutsummaryrefslogtreecommitdiff
path: root/interactive.sh
diff options
context:
space:
mode:
Diffstat (limited to 'interactive.sh')
-rwxr-xr-xinteractive.sh32
1 files changed, 0 insertions, 32 deletions
diff --git a/interactive.sh b/interactive.sh
deleted file mode 100755
index 425cd25..0000000
--- a/interactive.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-
-print_selected_window_id() {
- xwininfo | grep 'Window id:' | cut -d' ' -f4
-}
-
-echo "Select a window to record"
-window_id=$(print_selected_window_id)
-
-echo -n "Enter video fps: "
-read fps
-
-echo "Select audio input:"
-selected_audio_input=""
-select audio_input in $(pactl list | sed -rn 's/Monitor Source: (.*)/\1/p'); do
- if [ "$audio_input" == "" ]; then
- echo "Invalid option $REPLY"
- else
- selected_audio_input="$audio_input"
- break
- fi
-done
-
-echo -n "Enter output file name: "
-read output_file_name
-
-output_dir=$(dirname "$output_file_name")
-mkdir -p "$output_dir"
-
-./sibs-build/linux_x86_64/release/gpu-screen-recorder -w "$window_id" -c mp4 -f "$fps" -a "$selected_audio_input" -o "$output_file_name"