My configurations for the software I use
1#!/bin/sh
2# shellcheck disable=SC2034
3
4## general ##
5# defines were screenshots and recordings will be stored
6# scr_basedir="${HOME}/tmp/scr"
7scr_pic_dir="${HOME}/pic/scr"
8scr_rec_dir="${HOME}/vid/scr"
9scr_aud_dir="${HOME}/aud/scr"
10
11## aud settings ##
12# Audio devices to use for recording audio.
13# These devices canbe found by executing `pactl list sinks | grep "Monitor Source"`
14# for the sink and by executing `pactl list sources | grep Name:` for the source.
15aud_sink="$(pactl info | grep Default\ Sink)" # Is there a pipewire specific tool for this?
16aud_sink="${aud_sink#Default\ Sink: }.monitor"
17aud_source="$(pactl info | grep Default\ Source)"
18aud_source="${aud_source#Default\ Source: }"
19
20# The name of the audio file.
21aud_filename="$(date +%F-%H_%M_%S).wav"
22
23## pic settings ##
24# The name of the image file.
25pic_filename="$(date +%F-%H_%M_%S).png"
26
27## rec settings ##
28# The name of the video file.
29rec_filename="$(date +%F-%H_%M_%S).mp4"
30# extra flags for wf-recorder
31#rec_extraflags="-t -c h264_vaapi -d /dev/dri/renderD128"
32rec_extraflags="-t -b 0 -c h264_vaapi -d /dev/dri/renderD128"