mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 09:07:13 +09:00
exit 0 instead of exit 1
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user