init
This commit is contained in:
15
scripts/interactive.sh
Executable file
15
scripts/interactive.sh
Executable file
@ -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"
|
||||
Reference in New Issue
Block a user