From b8f2c418238af1b784b160d70bc60e4f3d2a61f3 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Thu, 28 Feb 2019 18:34:01 +0100 Subject: Created screen recording scripts. --- stopScreenRecord.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 stopScreenRecord.sh (limited to 'stopScreenRecord.sh') 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 -- cgit v1.2.1