fix record script

This commit is contained in:
end-4 2024-01-20 15:58:33 +07:00
parent 25a9a2fb51
commit ee62358808

View file

@ -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