[bin] Finally add my screenrecording scriptlet

This commit is contained in:
Sebastian Schulze 2023-01-24 21:02:22 +01:00
parent 369853012f
commit 43cd0f45c0
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
FOLDER="/home/bascht/Videos/Screenrecordings/$(date +'%Y-%m')"
mkdir -p "${FOLDER}"
if [[ -z "${*}" ]]; then
NAME="${FOLDER}/$(date +%Y-%m-%d-%H%M%S).webm"
else
NAME="${*}.webm";
fi;
wf-recorder -d /dev/dri/renderD128 -c libvpx-vp9 -g "$(slurp-window)" -f "${NAME}"