summaryrefslogtreecommitdiff
path: root/xrec
diff options
context:
space:
mode:
authorxAlpharax <42233094+xAlpharax@users.noreply.github.com>2023-09-24 21:38:37 +0300
committerxAlpharax <42233094+xAlpharax@users.noreply.github.com>2023-09-24 21:38:37 +0300
commitd0fd698bcacc2c477a0149d2deb373722f45e214 (patch)
tree4d1ca7c02f4c6b13239184961da0aec069b205ff /xrec
parent6215bc6b4e524735b75a45cdf6d08c7edf641bdb (diff)
Adding entire tool chain for:
- taking screenshots - taking screenshots and piping them to the system clipboard - taking recordings of the x11 screen with x11grab and ffmpeg (no audio) Changes to be committed: modified: keybinds new file: clip new file: xrec new file: xshot
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