From 1ee2587a8f800c2f49c49258aec92d3e73980e9e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 21 Sep 2024 17:51:01 +0200 Subject: exit 0 instead of exit 1 --- scripts/start-recording.sh | 2 +- scripts/start-replay.sh | 2 +- scripts/start-stop-recording.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/start-recording.sh b/scripts/start-recording.sh index bf71d62..03fda73 100755 --- a/scripts/start-recording.sh +++ b/scripts/start-recording.sh @@ -1,5 +1,5 @@ #!/bin/sh -pidof -q gpu-screen-recorder && exit 1 +pidof -q gpu-screen-recorder && exit 0 video="$HOME/Videos/$(date +"Video_%Y-%m-%d_%H-%M-%S.mp4")" gpu-screen-recorder -w screen -f 60 -a default_output -o "$video" diff --git a/scripts/start-replay.sh b/scripts/start-replay.sh index 6c03178..860f2ce 100755 --- a/scripts/start-replay.sh +++ b/scripts/start-replay.sh @@ -1,6 +1,6 @@ #!/bin/sh -pidof -q gpu-screen-recorder && exit 1 +pidof -q gpu-screen-recorder && exit 0 video_path="$HOME/Videos" mkdir -p "$video_path" gpu-screen-recorder -w screen -f 60 -a default_output -c mkv -r 30 -o "$video_path" diff --git a/scripts/start-stop-recording.sh b/scripts/start-stop-recording.sh index bbcd27f..775a829 100755 --- a/scripts/start-stop-recording.sh +++ b/scripts/start-stop-recording.sh @@ -4,7 +4,7 @@ # if it's already recording. This script can be bound to a single hotkey # to start/stop recording with a single hotkey. -killall -SIGINT -q gpu-screen-recorder && exit 1 +killall -SIGINT -q gpu-screen-recorder && exit 0 video="$HOME/Videos/$(date +"Video_%Y-%m-%d_%H-%M-%S.mp4")" gpu-screen-recorder -w screen -f 60 -a default_output -o "$video" notify-send -t 2000 -u low "GPU Screen Recorder" "Video saved to $video" -- cgit v1.2.3