summaryrefslogtreecommitdiff
path: root/xrec
diff options
context:
space:
mode:
Diffstat (limited to 'xrec')
-rwxr-xr-xxrec15
1 files changed, 15 insertions, 0 deletions
diff --git a/xrec b/xrec
new file mode 100755
index 0000000..4bfab62
--- /dev/null
+++ b/xrec
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+set -e
+
+recordingPATH=~/media/screenrecords/
+
+case $1 in
+
+ start)
+ ffmpeg -video_size 1920x1080 -framerate 60 -f x11grab -i :0.0+0,0 ${recordingPATH}screenrecording_$(($(ls $recordingPATH | wc -l)+1)).mp4 ;;
+
+ stop)
+ pkill ffmpeg ;;
+
+esac