aboutsummaryrefslogtreecommitdiff
path: root/stopScreenRecord.sh
blob: 680f2f471189c7d097769d3002f644ada8dde710 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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