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