aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/screencast
diff options
context:
space:
mode:
authorNPScript <nathan@reinerweb.ch>2022-04-09 21:22:20 +0200
committerNPScript <nathan@reinerweb.ch>2022-04-09 21:22:20 +0200
commit896c311feb10e947c727a888308dbc7eb71d1ec2 (patch)
treeb6713478d14eb8ea531107c3f399c437db7fd2fb /.local/bin/screencast
init commit
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