Add gpu-screen-wrapper scripts

This commit is contained in:
Josh Holtrop 2026-05-05 17:05:14 -04:00
parent cb779f4134
commit 1f89c56c2c
3 changed files with 16 additions and 0 deletions

2
gpu-screen-recorder-start Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec gpu-screen-recorder -w screen -o ~/Videos -r 90 -c mp4 -a default_output -ac aac

2
gpu-screen-recorder-trigger Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec killall -SIGUSR1 gpu-screen-recorder

12
gpu-screen-recorder-wrapper Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
DEFAULT_SINK=$(pactl get-default-sink)
MONITOR_SINK="${DEFAULT_SINK}.monitor"
gpu-screen-recorder -w screen -o ~/Videos -r 90 -c mp4 -a "$MONITOR_SINK" -ac aac & >> $HOME/.gpu-screen-recorder.log
PID=$!
"$@"
kill -SIGINT $PID
wait $PID