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:
parent
1488c9ce5a
commit
29ac61618d
@ -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'
|
||||
|
@ -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'
|
||||
|
@ -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'
|
||||
|
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user