1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-27 21:47:46 +01:00

record: fixed notifications

This commit is contained in:
tiyn 2023-01-11 03:58:46 +01:00
parent 1488c9ce5a
commit 29ac61618d
4 changed files with 4 additions and 6 deletions

View File

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

View File

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

View File

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

View File

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