From 03e583e61e4cc28fa614dcd981d093ede0b3dd62 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 27 Feb 2023 16:33:29 +0100 Subject: Add replay scripts --- scripts/save-replay.sh | 4 ++++ scripts/start-replay.sh | 5 +++++ scripts/stop-replay.sh | 3 +++ 3 files changed, 12 insertions(+) create mode 100755 scripts/save-replay.sh create mode 100755 scripts/start-replay.sh create mode 100755 scripts/stop-replay.sh (limited to 'scripts') diff --git a/scripts/save-replay.sh b/scripts/save-replay.sh new file mode 100755 index 0000000..eac9141 --- /dev/null +++ b/scripts/save-replay.sh @@ -0,0 +1,4 @@ +#!/bin/sh -e + +killall -SIGUSR1 gpu-screen-recorder +notify-send -t 5000 -u low -- "GPU Screen Recorder" "Replay saved" diff --git a/scripts/start-replay.sh b/scripts/start-replay.sh new file mode 100755 index 0000000..29ff67a --- /dev/null +++ b/scripts/start-replay.sh @@ -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" diff --git a/scripts/stop-replay.sh b/scripts/stop-replay.sh new file mode 100755 index 0000000..d38da9c --- /dev/null +++ b/scripts/stop-replay.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +killall -SIGINT gpu-screen-recorder -- cgit v1.2.3