diff --git a/.local/bin/tools/record_replay_save b/.local/bin/tools/record_replay_save index c995d6a..4341c8c 100755 --- a/.local/bin/tools/record_replay_save +++ b/.local/bin/tools/record_replay_save @@ -1,4 +1,3 @@ #!/bin/sh -killall -SIGUSR1 gpu-screen-recorder -notify-send 'Screen record' 'Replay saved' +killall -SIGUSR1 gpu-screen-recorder && notify-send 'Screen record' 'Replay saved' diff --git a/.local/bin/tools/record_replay_start b/.local/bin/tools/record_replay_start index b1ef2f2..00d825a 100755 --- a/.local/bin/tools/record_replay_start +++ b/.local/bin/tools/record_replay_start @@ -7,5 +7,5 @@ format="mp4" lenght=20 output="$HOME/downloads" -gpu-screen-recorder -w $window -f $fps -a $audio -c $format -r $lenght -o $output +gpu-screen-recorder -w $window -f $fps -a $audio -c $format -r $lenght -o $output & notify-send 'Screen record' 'Replay started' diff --git a/.local/bin/tools/record_start b/.local/bin/tools/record_start index 14177b9..2207f61 100755 --- a/.local/bin/tools/record_start +++ b/.local/bin/tools/record_start @@ -6,5 +6,5 @@ audio="$(pactl get-default-sink).monitor" format="mp4" output="$HOME/downloads/recording-$(date '+%Y-%m-%d_%H-%M-%S').$format" -gpu-screen-recorder -w $window -c "mp4" -f $fps -a $audio -o $output +gpu-screen-recorder -w $window -c "mp4" -f $fps -a $audio -o $output & notify-send 'Screen record' 'Recording started' diff --git a/.local/bin/tools/record_stop b/.local/bin/tools/record_stop index 01e2e5d..eedc48b 100755 --- a/.local/bin/tools/record_stop +++ b/.local/bin/tools/record_stop @@ -1,4 +1,3 @@ #!/bin/sh -killall -SIGINT gpu-screen-recorder -notify-send 'Screen record' 'Recording stopped' +killall -SIGINT gpu-screen-recorder && notify-send 'Screen record' 'Recording stopped'