Add gpu-screen-wrapper scripts
This commit is contained in:
parent
cb779f4134
commit
1f89c56c2c
2
gpu-screen-recorder-start
Executable file
2
gpu-screen-recorder-start
Executable 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
2
gpu-screen-recorder-trigger
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
exec killall -SIGUSR1 gpu-screen-recorder
|
||||||
12
gpu-screen-recorder-wrapper
Executable file
12
gpu-screen-recorder-wrapper
Executable 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
|
||||||
Loading…
x
Reference in New Issue
Block a user