diff options
Diffstat (limited to 'bin/record.sh')
-rwxr-xr-x | bin/record.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/record.sh b/bin/record.sh new file mode 100755 index 0000000..be85a2f --- /dev/null +++ b/bin/record.sh @@ -0,0 +1,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" |