summaryrefslogtreecommitdiff
path: root/vlog
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2020-02-25 07:47:23 -0800
committerBen Sima <ben@bsima.me>2020-02-25 07:47:23 -0800
commit3b08b959f80b8eeea5a05e12321e0d5396633ddc (patch)
treed7390c19f57e71fa07bc5371a26e7a6928d063c7 /vlog
parent41ac9c0453a4aa61ca06f2958b107e3e4d7acdfc (diff)
Add VLOGDIR to vlog script
Diffstat (limited to 'vlog')
-rwxr-xr-xvlog7
1 files changed, 5 insertions, 2 deletions
diff --git a/vlog b/vlog
index 3a4ace7..0f79787 100755
--- a/vlog
+++ b/vlog
@@ -1,10 +1,13 @@
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p ffmpeg
#
-# https://gist.github.com/dpacmittal/9f0e1aea8a3732d8f7aec7b1dadc8cda
+# Records screen and camera (in corner). Saves result to $VLOGDIR.
+#
+# c.f. https://gist.github.com/dpacmittal/9f0e1aea8a3732d8f7aec7b1dadc8cda
+#
FILE=$(date +%Y.%m.%d..%H.%M)
-DIR=/mnt/lake/ben/videos
+DIR=${VLOGDIR:-/mnt/lake/ben/videos}
SIZE=1920x1080
OUTFILE="$DIR/$FILE.mkv"