aboutsummaryrefslogtreecommitdiff
path: root/bin/record.sh
blob: 9796672e230e8fb8032b5fca7f6225bc57753cec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

if [ $# -ne 1 ]; then
	echo "bad usage"
	exit
fi

if [ -n "$(pgrep ffmpeg)" ]; then
	echo "Already recording"
	exit
fi

dunstify "Recording Sarted"
ffmpeg -v warning -f x11grab -probesize 10M -framerate 25 -i $DISPLAY -crf 30 $1.mkv

dunstify "Recording Stopped"