From ee62358808cc70702957ac04a7b35749cbd7e97e Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sat, 20 Jan 2024 15:58:33 +0700 Subject: [PATCH] fix record script --- .config/ags/scripts/record-script.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/ags/scripts/record-script.sh b/.config/ags/scripts/record-script.sh index f4a81870..bc501323 100755 --- a/.config/ags/scripts/record-script.sh +++ b/.config/ags/scripts/record-script.sh @@ -6,8 +6,8 @@ getdate() { cd ~/Videos || exit if pgrep wf-recorder > /dev/null; then - kill --signal SIGINT wf-recorder - notify-send "Recording Stopped" "Stopped" -a 'record-script.sh' + notify-send "Recording Stopped" "Stopped" -a 'record-script.sh' & + pkill wf-recorder & else notify-send "Starting recording" 'recording_'"$(getdate)"'.mp4' -a 'record-script.sh' if [[ "$1" == "--sound" ]]; then