From 29ac61618d25f12ebea887a4d95012ea34b6b0ad Mon Sep 17 00:00:00 2001 From: tiyn Date: Wed, 11 Jan 2023 03:58:46 +0100 Subject: [PATCH] record: fixed notifications --- .local/bin/tools/record_replay_save | 3 +-- .local/bin/tools/record_replay_start | 2 +- .local/bin/tools/record_start | 2 +- .local/bin/tools/record_stop | 3 +-- 4 files changed, 4 insertions(+), 6 deletions(-) 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'