# Install dependencies
sudo apt install g++ meson libavutil-dev libavcodec-dev libavformat-dev libswscale-dev libpulse-dev wayland-protocols libpipewire-0.3-dev
mkdir ~/src
cd ~/src
# https://github.com/ammen99/wf-recorder/releases
wget https://github.com/ammen99/wf-recorder/releases/download/v0.5.0/wf-recorder-0.5.0.tar.xz
tar -xf wf-recorder-0.5.0.tar.xz
cd wf-recorder-0.5.0
meson setup build --prefix=/usr --buildtype=release --reconfigure
ninja -C build
# Install
cp ~/src/wf-recorder-0.5.0/build/wf-recorder /usr/local/bin
Now you can record the screen including audio using the following command:
wf-recorder --overwrite -a default -f file.mp4