mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-10-25 10:41:16 +02:00
record: fixed notifications
This commit is contained in:
@@ -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'
|
|
||||||
|
|||||||
Reference in New Issue
Block a user