aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/screencast
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/screencast')
-rwxr-xr-x.local/bin/screencast11
1 files changed, 11 insertions, 0 deletions
diff --git a/.local/bin/screencast b/.local/bin/screencast
new file mode 100755
index 0000000..0d64e7e
--- /dev/null
+++ b/.local/bin/screencast
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+name=$(date "+recording_%H-%M-%S_%d_%m_%y.mp4")
+
+
+case "$(printf "Screen\nWindow\nRegion\nEnd Recording" | dmenu -p "Record")" in
+ Screen)ffcast -x "$(ffcast -x list | dmenu -p "Monitor" | gcol 2 | tr -d '#:')" rec "$name";;
+ Window)ffcast -w rec "$name";;
+ Region)ffcast -s rec "$name";;
+ End\ Recording)killall -s INT ffmpeg;;
+esac