dotfiles

Configuration for the software I use.
git clone https://git.sr.ht/~jbauer/dotfiles
Log | Files | Refs | README | LICENSE

commit eb0f263555afc468c76f8aaeea1aace8cc6e7f5d
parent bacc66f97cf62b43f4bcc2fe0320ae31f78c7859
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Tue,  2 Feb 2021 22:37:20 -0500

Add script for quick recordings

Diffstat:
A.local/bin/record | 37+++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+), 0 deletions(-)

diff --git a/.local/bin/record b/.local/bin/record @@ -0,0 +1,37 @@ +#!/bin/sh + +# Prompt the user to record audio, video, a combination, or to end the currently +# running recordings. + +choice=$(printf "audio+video\\nvideo\\naudio\\nend" | dmenu -i -p "Record:") || exit 1 +case "$choice" in + audio+video) + ffmpeg -y \ + -f x11grab \ + -framerate 60 \ + -s "1920x1080" \ + -i "$DISPLAY" \ + -f alsa -i default \ + -c:v libx264 -qp 0 -c:a aac \ + "~/av-$(date '+%Y%m%d-%H%M').mkv" & + ;; + video) + ffmpeg -y \ + -f x11grab \ + -framerate 60 \ + -s "1920x1080" \ + -i "$DISPLAY" \ + -c:v libx264 -qp 0 \ + "~/a-$(date '+%Y%m%d-%H%M').mkv" & + ;; + audio) + ffmpeg -y \ + -f alsa -i default \ + -c:a flac \ + "~/v-$(date '+%Y%m%d-%H%M').flac" & + ;; + end) + pkill ffmpeg + ;; +esac +exit 0