[bin] Fix screenrecorder postfix

This commit is contained in:
Sebastian Schulze 2023-02-23 09:00:19 +01:00
parent 66d50d54d1
commit b4392efaab
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
1 changed files with 6 additions and 6 deletions

View File

@ -3,11 +3,11 @@
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";
NAME="${FOLDER}/$(date +%Y-%m-%d-%H%M%S)"
if [[ -n "${*}" ]]; then
NAME="${NAME}-${*}";
fi;
wf-recorder -d /dev/dri/renderD128 -c libvpx-vp9 -g "$(slurp-window)" -f "${NAME}"
echo "${NAME}"
wf-recorder -d /dev/dri/renderD128 -c libvpx-vp9 -g "$(slurp-window)" -f "${NAME}.webm" > /dev/null 2>&1
echo "${NAME}.webm"