exit 0 instead of exit 1

This commit is contained in:
dec05eba
2024-09-21 17:51:01 +02:00
parent c21e58f16f
commit 1ee2587a8f
3 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
#!/bin/sh #!/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")" video="$HOME/Videos/$(date +"Video_%Y-%m-%d_%H-%M-%S.mp4")"
gpu-screen-recorder -w screen -f 60 -a default_output -o "$video" gpu-screen-recorder -w screen -f 60 -a default_output -o "$video"

View File

@@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
pidof -q gpu-screen-recorder && exit 1 pidof -q gpu-screen-recorder && exit 0
video_path="$HOME/Videos" video_path="$HOME/Videos"
mkdir -p "$video_path" mkdir -p "$video_path"
gpu-screen-recorder -w screen -f 60 -a default_output -c mkv -r 30 -o "$video_path" gpu-screen-recorder -w screen -f 60 -a default_output -c mkv -r 30 -o "$video_path"

View File

@@ -4,7 +4,7 @@
# if it's already recording. This script can be bound to a single hotkey # if it's already recording. This script can be bound to a single hotkey
# to start/stop recording with 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")" video="$HOME/Videos/$(date +"Video_%Y-%m-%d_%H-%M-%S.mp4")"
gpu-screen-recorder -w screen -f 60 -a default_output -o "$video" 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" notify-send -t 2000 -u low "GPU Screen Recorder" "Video saved to $video"