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

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"