record: fixed notifications

master
tiyn 2 years ago
parent 1488c9ce5a
commit 29ac61618d

@ -1,4 +1,3 @@
#!/bin/sh #!/bin/sh
killall -SIGUSR1 gpu-screen-recorder killall -SIGUSR1 gpu-screen-recorder && notify-send 'Screen record' 'Replay saved'
notify-send 'Screen record' 'Replay saved'

@ -7,5 +7,5 @@ format="mp4"
lenght=20 lenght=20
output="$HOME/downloads" 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' notify-send 'Screen record' 'Replay started'

@ -6,5 +6,5 @@ audio="$(pactl get-default-sink).monitor"
format="mp4" format="mp4"
output="$HOME/downloads/recording-$(date '+%Y-%m-%d_%H-%M-%S').$format" 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' notify-send 'Screen record' 'Recording started'

@ -1,4 +1,3 @@
#!/bin/sh #!/bin/sh
killall -SIGINT gpu-screen-recorder killall -SIGINT gpu-screen-recorder && notify-send 'Screen record' 'Recording stopped'
notify-send 'Screen record' 'Recording stopped'

Loading…
Cancel
Save