blob: 664589defab932a60b5d5ac45b012ccdc16b033c (
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
[ -n "$STATUS_BAR" ] && pkill -SIGRTMIN+13 "$STATUS_BAR"
|