Add replay scripts

This commit is contained in:
dec05eba
2023-02-27 16:33:29 +01:00
parent 50afa9395b
commit 03e583e61e
4 changed files with 16 additions and 1 deletions

4
scripts/save-replay.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/sh -e
killall -SIGUSR1 gpu-screen-recorder
notify-send -t 5000 -u low -- "GPU Screen Recorder" "Replay saved"

5
scripts/start-replay.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/sh
video_path="$HOME/Videos"
mkdir -p "$video_path"
gpu-screen-recorder -w screen -f 60 -a "$(pactl get-default-sink).monitor" -c mp4 -r 30 -o "$video_path"

3
scripts/stop-replay.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
killall -SIGINT gpu-screen-recorder