diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2019-02-28 18:34:01 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2019-02-28 18:34:01 +0100 |
commit | b8f2c418238af1b784b160d70bc60e4f3d2a61f3 (patch) | |
tree | 485a53a71ce0da654b2c68fdd6746a3f502bb317 /stopScreenRecord.sh | |
parent | e7d59e49793442481705f0a8bb1d24ccea30eb8f (diff) | |
download | scripts-b8f2c418238af1b784b160d70bc60e4f3d2a61f3.tar.gz scripts-b8f2c418238af1b784b160d70bc60e4f3d2a61f3.zip |
Created screen recording scripts.
Diffstat (limited to 'stopScreenRecord.sh')
-rwxr-xr-x | stopScreenRecord.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/stopScreenRecord.sh b/stopScreenRecord.sh new file mode 100755 index 0000000..680f2f4 --- /dev/null +++ b/stopScreenRecord.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +MARKFILE='/tmp/screenRec.mark' +# Terminate ffmpeg processes +for process in $(pgrep -x ffmpeg) +do + kill "$process" && notify-send -t 1000 "ffmpeg $process stopped." +done +# Terminate screenRecord.sh processes +for process in $(pgrep -x screenRecord.sh) +do + kill "$process" && notify-send -t 1000 "Recording $process stopped." +done +rm $MARKFILE +pkill -SIGRTMIN+13 i3blocks |