aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2016-08-13 04:44:22 -0700
committerkatherine <shmibs@shmibbles.me>2016-08-13 04:44:22 -0700
commitdb526923b2887c1eabba734fa6f6a5453bd418ad (patch)
tree44b95fa095d30deec4f2353b5b95ce48c7e0b64b
parent87792a6a8ed5bda05a96097782ac0e05074c1cb0 (diff)
downloaddotfiles-db526923b2887c1eabba734fa6f6a5453bd418ad.tar.gz
create screen capturing function
-rwxr-xr-x.config/init/funcs/scap18
1 files changed, 18 insertions, 0 deletions
diff --git a/.config/init/funcs/scap b/.config/init/funcs/scap
new file mode 100755
index 0000000..489f7b8
--- /dev/null
+++ b/.config/init/funcs/scap
@@ -0,0 +1,18 @@
+#!/bin/zsh
+
+# capture webm
+scap() {
+ archey3
+ sleep .2
+
+ if [[ -f '/tmp/cap.mp4' ]]; then
+ rm '/tmp/cap.mp4'
+ fi
+
+ echo 'recording...'
+
+ ffmpeg -v panic -video_size 1920x1080 -framerate 30 -f x11grab -i :0.0 \
+ -f pulse -ac 2 -i default -af aresample=async=1 \
+ -c:v libx264 -q 0 -preset fast '/tmp/cap.mp4'
+}
+